Simple Question (Direct)
Simple Question
Q5724207
P102
Q7210356
USER
Which political organization is Knut Falk a member of ?
(Q5724207,P102,c(Q7210356))
action filter_type
action find
entity Q5724207
relation P102
type Q7210356
['Q5724207', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q5724207 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Knut Falk
action filter_type
action find
entity Knut Falk
relation member of political party
type political organization
['Knut Falk', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Knut_Falk property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
political organization
Q7251368
SYSTEM
Protectionist Party
Q7251368
(Q5724207,P102,c(Q7210356))
action filter_type
action find
entity Q5724207
relation P102
type Q7210356
Party [ANSWER] is Knut Falk a member of
['Q5724207', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q5724207 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Protectionist Party
Party Protectionist Party is Knut Falk a member of
Protectionist Party
action filter_type
action find
entity Knut Falk
relation member of political party
type political organization
['Knut Falk', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Knut_Falk property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q95521 Q5724207
P937
Q56061
USER
Which administrative territories are the work locations of Knut Falk or Franz Lucas ?
OR((Q5724207,P937,c(Q56061)), (Q95521,P937,c(Q56061)))
action filter_type
action union
action find
entity Q5724207
relation P937
action find
entity Q95521
relation P937
type Q56061
{'OR': [['Q5724207', 'P937', {'concept': 'Q56061'}], ['Q95521', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q5724207 property:P937 ?b } UNION { resource:Q95521 property:P937 ?b } } . ?b rdf:type ontology:Q56061 }
Franz Lucas Knut Falk
action filter_type
action union
action find
entity Knut Falk
relation work location
action find
entity Franz Lucas
relation work location
type administrative territorial entity
{'OR': [['Knut Falk', 'work location', {'concept': 'administrative territorial entity'}], ['Franz Lucas', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Knut_Falk property:work_location ?b } UNION { resource:Franz_Lucas property:work_location ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2861 Q17617596 Q1754 Q2090
SYSTEM
Rostock, Ravensbrück, Stockholm, Nuremberg
Q2861 Q17617596 Q1754 Q2090
OR((Q5724207,P937,c(Q56061)), (Q95521,P937,c(Q56061)))
action filter_type
action union
action find
entity Q5724207
relation P937
action find
entity Q95521
relation P937
type Q56061
[ANSWERS] are the work locations of Knut Falk or Franz Lucas
{'OR': [['Q5724207', 'P937', {'concept': 'Q56061'}], ['Q95521', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q5724207 property:P937 ?b } UNION { resource:Q95521 property:P937 ?b } } . ?b rdf:type ontology:Q56061 }
Rostock Ravensbrück Stockholm Nuremberg
Rostock, Ravensbrück, Stockholm and Nuremberg are the work locations of Knut Falk or Franz Lucas
Rostock Ravensbrück Stockholm Nuremberg
action filter_type
action union
action find
entity Knut Falk
relation work location
action find
entity Franz Lucas
relation work location
type administrative territorial entity
{'OR': [['Knut Falk', 'work location', {'concept': 'administrative territorial entity'}], ['Franz Lucas', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Knut_Falk property:work_location ?b } UNION { resource:Franz_Lucas property:work_location ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q515 Q15617994
USER
How many cities or administrative territories are bordered by that administrative territory ?
(Q2090,P47,c(Q515)) (Q2090,P47,c(Q15617994)) (Q2861,P47,c(Q515)) (Q2861,P47,c(Q15617994)) (Q17617596,P47,c(Q515)) (Q17617596,P47,c(Q15617994)) (Q1754,P47,c(Q515)) (Q1754,P47,c(Q15617994)) (Q2090,P47,c(Q515)) (Q2090,P47,c(Q15617994))
['Q2090', 'P47', {'concept': 'Q515'}] ['Q2090', 'P47', {'concept': 'Q15617994'}] ['Q2861', 'P47', {'concept': 'Q515'}] ['Q2861', 'P47', {'concept': 'Q15617994'}] ['Q17617596', 'P47', {'concept': 'Q515'}] ['Q17617596', 'P47', {'concept': 'Q15617994'}] ['Q1754', 'P47', {'concept': 'Q515'}] ['Q1754', 'P47', {'concept': 'Q15617994'}] ['Q2090', 'P47', {'concept': 'Q515'}] ['Q2090', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2090 property:P47 ?z } UNION { resource:Q2090 property:P47 ?y } UNION { resource:Q19481941 property:P47 ?z } UNION { resource:Q19481941 property:P47 ?y } UNION { resource:Q17617596 property:P47 ?z } UNION { resource:Q17617596 property:P47 ?y } UNION { resource:Q3447382 property:P47 ?z } UNION { resource:Q3447382 property:P47 ?y } UNION { resource:Q2090 property:P47 ?z } UNION { resource:Q2090 property:P47 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15617994 }
['Nuremberg', 'shares border with', {'concept': 'city'}] ['Nuremberg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Rostock', 'shares border with', {'concept': 'city'}] ['Rostock', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ravensbrück', 'shares border with', {'concept': 'city'}] ['Ravensbrück', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Stockholm', 'shares border with', {'concept': 'city'}] ['Stockholm', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Nuremberg', 'shares border with', {'concept': 'city'}] ['Nuremberg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nuremberg property:shares_border_with ?z } UNION { resource:Nuremberg property:shares_border_with ?y } UNION { resource:Rostock property:shares_border_with ?z } UNION { resource:Rostock property:shares_border_with ?y } UNION { resource:Ravensbrück property:shares_border_with ?z } UNION { resource:Ravensbrück property:shares_border_with ?y } UNION { resource:Stockholm property:shares_border_with ?z } UNION { resource:Stockholm property:shares_border_with ?y } UNION { resource:Nuremberg property:shares_border_with ?z } UNION { resource:Nuremberg property:shares_border_with ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
city designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q2861
SYSTEM
Did you mean Rostock ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2090 property:P47 ?z } UNION { resource:Q2090 property:P47 ?y } UNION { resource:Q19481941 property:P47 ?z } UNION { resource:Q19481941 property:P47 ?y } UNION { resource:Q17617596 property:P47 ?z } UNION { resource:Q17617596 property:P47 ?y } UNION { resource:Q3447382 property:P47 ?z } UNION { resource:Q3447382 property:P47 ?y } UNION { resource:Q2090 property:P47 ?z } UNION { resource:Q2090 property:P47 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15617994 }
Did you mean Rostock ?
Rostock
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nuremberg property:shares_border_with ?z } UNION { resource:Nuremberg property:shares_border_with ?y } UNION { resource:Rostock property:shares_border_with ?z } UNION { resource:Rostock property:shares_border_with ?y } UNION { resource:Ravensbrück property:shares_border_with ?z } UNION { resource:Ravensbrück property:shares_border_with ?y } UNION { resource:Stockholm property:shares_border_with ?z } UNION { resource:Stockholm property:shares_border_with ?y } UNION { resource:Nuremberg property:shares_border_with ?z } UNION { resource:Nuremberg property:shares_border_with ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Nuremberg. Could you tell me the answer for that?
(Q2090,P47,c(Q515)) (Q2090,P47,c(Q15617994)) (Q2861,P47,c(Q515)) (Q2861,P47,c(Q15617994)) (Q17617596,P47,c(Q515)) (Q17617596,P47,c(Q15617994)) (Q1754,P47,c(Q515)) (Q1754,P47,c(Q15617994)) (Q2090,P47,c(Q515)) (Q2090,P47,c(Q15617994))
Q2090
['Q2090', 'P47', {'concept': 'Q515'}] ['Q2090', 'P47', {'concept': 'Q15617994'}] ['Q2861', 'P47', {'concept': 'Q515'}] ['Q2861', 'P47', {'concept': 'Q15617994'}] ['Q17617596', 'P47', {'concept': 'Q515'}] ['Q17617596', 'P47', {'concept': 'Q15617994'}] ['Q1754', 'P47', {'concept': 'Q515'}] ['Q1754', 'P47', {'concept': 'Q15617994'}] ['Q2090', 'P47', {'concept': 'Q515'}] ['Q2090', 'P47', {'concept': 'Q15617994'}]
['Nuremberg', 'shares border with', {'concept': 'city'}] ['Nuremberg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Rostock', 'shares border with', {'concept': 'city'}] ['Rostock', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ravensbrück', 'shares border with', {'concept': 'city'}] ['Ravensbrück', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Stockholm', 'shares border with', {'concept': 'city'}] ['Stockholm', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Nuremberg', 'shares border with', {'concept': 'city'}] ['Nuremberg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
3
Q3126 Q14889 Q3075
(Q2090,P47,c(Q515)) (Q2090,P47,c(Q15617994)) (Q2861,P47,c(Q515)) (Q2861,P47,c(Q15617994)) (Q17617596,P47,c(Q515)) (Q17617596,P47,c(Q15617994)) (Q1754,P47,c(Q515)) (Q1754,P47,c(Q15617994)) (Q2090,P47,c(Q515)) (Q2090,P47,c(Q15617994))
[ANSWER]
['Q2090', 'P47', {'concept': 'Q515'}] ['Q2090', 'P47', {'concept': 'Q15617994'}] ['Q2861', 'P47', {'concept': 'Q515'}] ['Q2861', 'P47', {'concept': 'Q15617994'}] ['Q17617596', 'P47', {'concept': 'Q515'}] ['Q17617596', 'P47', {'concept': 'Q15617994'}] ['Q1754', 'P47', {'concept': 'Q515'}] ['Q1754', 'P47', {'concept': 'Q15617994'}] ['Q2090', 'P47', {'concept': 'Q515'}] ['Q2090', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2090 property:P47 ?z } UNION { resource:Q2090 property:P47 ?y } UNION { resource:Q19481941 property:P47 ?z } UNION { resource:Q19481941 property:P47 ?y } UNION { resource:Q17617596 property:P47 ?z } UNION { resource:Q17617596 property:P47 ?y } UNION { resource:Q3447382 property:P47 ?z } UNION { resource:Q3447382 property:P47 ?y } UNION { resource:Q2090 property:P47 ?z } UNION { resource:Q2090 property:P47 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15617994 }
Erlangen Schwabach Fürth
3
['Nuremberg', 'shares border with', {'concept': 'city'}] ['Nuremberg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Rostock', 'shares border with', {'concept': 'city'}] ['Rostock', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ravensbrück', 'shares border with', {'concept': 'city'}] ['Ravensbrück', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Stockholm', 'shares border with', {'concept': 'city'}] ['Stockholm', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Nuremberg', 'shares border with', {'concept': 'city'}] ['Nuremberg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nuremberg property:shares_border_with ?z } UNION { resource:Nuremberg property:shares_border_with ?y } UNION { resource:Rostock property:shares_border_with ?z } UNION { resource:Rostock property:shares_border_with ?y } UNION { resource:Ravensbrück property:shares_border_with ?z } UNION { resource:Ravensbrück property:shares_border_with ?y } UNION { resource:Stockholm property:shares_border_with ?z } UNION { resource:Stockholm property:shares_border_with ?y } UNION { resource:Nuremberg property:shares_border_with ?z } UNION { resource:Nuremberg property:shares_border_with ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1754
P504
Q2235308
USER
What are the ship types that have Stockholm as their home port ?
(c(Q2235308),P504,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P504
type Q2235308
[{'concept': 'Q2235308'}, 'P504', 'Q1754']
SELECT DISTINCT ?y WHERE { ?y property:P504 resource:Q1754 . ?y rdf:type ontology:Q2235308 }
Stockholm
action filter_type
action find_reverse
entity Stockholm
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Stockholm']
SELECT DISTINCT ?y WHERE { ?y property:home_port resource:Stockholm . ?y rdf:type ontology:ship_type }
[]
ship type
Q382006 Q10659232 Q3538270
SYSTEM
Af Chapman, S/S Blidösund, Tre Kronor
Q382006 Q390238 Q19869165 Q10659232 Q3538270 Q966791 Q3335277
(c(Q2235308),P504,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P504
type Q2235308
The ship types that have Stockholm as their home port are [ANSWERS]
[{'concept': 'Q2235308'}, 'P504', 'Q1754']
SELECT DISTINCT ?y WHERE { ?y property:P504 resource:Q1754 . ?y rdf:type ontology:Q2235308 }
Af Chapman MS Costa Allegra IMO 6929258 S/S Blidösund Tre Kronor MS Mega Smeralda Najaden
The ship types that have Stockholm as their home port are Af Chapman, S/S Blidösund and Tre Kronor
Af Chapman S/S Blidösund Tre Kronor
action filter_type
action find_reverse
entity Stockholm
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Stockholm']
SELECT DISTINCT ?y WHERE { ?y property:home_port resource:Stockholm . ?y rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1754
P36
Q7275
USER
Which state contains that administrative territory as its capital ?
(c(Q7275),P36,Q382006) (c(Q7275),P36,Q10659232) (c(Q7275),P36,Q3538270)
action filter_type
action find_reverse
entity Q1754
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q382006'] [{'concept': 'Q7275'}, 'P36', 'Q10659232'] [{'concept': 'Q7275'}, 'P36', 'Q3538270']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7275 . ?s property:P36 resource:Q1754 }
Stockholm
action filter_type
action find_reverse
entity Stockholm
relation capital
type state
[{'concept': 'state'}, 'capital', 'Af Chapman'] [{'concept': 'state'}, 'capital', 'S/S Blidösund'] [{'concept': 'state'}, 'capital', 'Tre Kronor']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:state . ?s property:capital resource:Stockholm }
[]
state
Q62589
SYSTEM
Union between Sweden and Norway
Q62589
(c(Q7275),P36,Q382006) (c(Q7275),P36,Q10659232) (c(Q7275),P36,Q3538270)
action filter_type
action find_reverse
entity Q1754
relation P36
type Q7275
[ANSWER] contains that administrative territory as its capital
[{'concept': 'Q7275'}, 'P36', 'Q382006'] [{'concept': 'Q7275'}, 'P36', 'Q10659232'] [{'concept': 'Q7275'}, 'P36', 'Q3538270']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7275 . ?s property:P36 resource:Q1754 }
Union between Sweden and Norway
Union between Sweden and Norway contains that administrative territory as its capital
Union between Sweden and Norway
action filter_type
action find_reverse
entity Stockholm
relation capital
type state
[{'concept': 'state'}, 'capital', 'Af Chapman'] [{'concept': 'state'}, 'capital', 'S/S Blidösund'] [{'concept': 'state'}, 'capital', 'Tre Kronor']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:state . ?s property:capital resource:Stockholm }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19012511 Q3538270
P276 P504
Q56061
USER
Which administrative territories serve as the home port of Tre Kronor or are the place where de Wilg are located ?
OR((Q3538270,P504,c(Q56061)), (Q19012511,P276,c(Q56061)))
action filter_type
action union
action find
entity Q3538270
relation P504
action find
entity Q19012511
relation P276
type Q56061
{'OR': [['Q3538270', 'P504', {'concept': 'Q56061'}], ['Q19012511', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q3538270 property:P504 ?p } UNION { resource:Q19012511 property:P276 ?p } } . ?p rdf:type ontology:Q56061 }
de Wilg Tre Kronor
action filter_type
action union
action find
entity Tre Kronor
relation home port
action find
entity de Wilg
relation location
type administrative territorial entity
{'OR': [['Tre Kronor', 'home port', {'concept': 'administrative territorial entity'}], ['de Wilg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Tre_Kronor property:home_port ?p } UNION { resource:de_Wilg property:location ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q588544 Q1754
SYSTEM
Nieuwerkerk aan den IJssel, Stockholm
Q588544 Q1754
OR((Q3538270,P504,c(Q56061)), (Q19012511,P276,c(Q56061)))
action filter_type
action union
action find
entity Q3538270
relation P504
action find
entity Q19012511
relation P276
type Q56061
[ANSWERS] serve as the home port of Tre Kronor or are the place where de Wilg are located
{'OR': [['Q3538270', 'P504', {'concept': 'Q56061'}], ['Q19012511', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q3538270 property:P504 ?p } UNION { resource:Q19012511 property:P276 ?p } } . ?p rdf:type ontology:Q56061 }
Nieuwerkerk aan den IJssel Stockholm
Nieuwerkerk aan den IJssel and Stockholm serve as the home port of Tre Kronor or are the place where de Wilg are located
Nieuwerkerk aan den IJssel Stockholm
action filter_type
action union
action find
entity Tre Kronor
relation home port
action find
entity de Wilg
relation location
type administrative territorial entity
{'OR': [['Tre Kronor', 'home port', {'concept': 'administrative territorial entity'}], ['de Wilg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Tre_Kronor property:home_port ?p } UNION { resource:de_Wilg property:location ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6504674 Q19012511
P17
Q15617994
USER
Which administrative territories do de Wilg or Lawrence Township, Tuscarawas County, Ohio belong to ?
OR((Q19012511,P17,c(Q15617994)), (Q6504674,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q19012511
relation P17
action find
entity Q6504674
relation P17
type Q15617994
{'OR': [['Q19012511', 'P17', {'concept': 'Q15617994'}], ['Q6504674', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q19012511 property:P17 ?q } UNION { resource:Q6504674 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Lawrence Township, Tuscarawas County, Ohio de Wilg
action filter_type
action union
action find
entity de Wilg
relation country
action find
entity Lawrence Township, Tuscarawas County, Ohio
relation country
type designation for an administrative territorial entity
{'OR': [['de Wilg', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Lawrence Township, Tuscarawas County, Ohio', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:de_Wilg property:country ?q } UNION { resource:Lawrence_Township,_Tuscarawas_County,_Ohio property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q55
SYSTEM
United States of America, Netherlands
Q30 Q55
OR((Q19012511,P17,c(Q15617994)), (Q6504674,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q19012511
relation P17
action find
entity Q6504674
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q19012511', 'P17', {'concept': 'Q15617994'}], ['Q6504674', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q19012511 property:P17 ?q } UNION { resource:Q6504674 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
United States of America Netherlands
United States of America Netherlands
action filter_type
action union
action find
entity de Wilg
relation country
action find
entity Lawrence Township, Tuscarawas County, Ohio
relation country
type designation for an administrative territorial entity
{'OR': [['de Wilg', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Lawrence Township, Tuscarawas County, Ohio', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:de_Wilg property:country ?q } UNION { resource:Lawrence_Township,_Tuscarawas_County,_Ohio property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q265123
P17
Q42889
USER
Are BRDM-1 located in those administrative territories ?
(Q265123,P17,Q30) (Q265123,P17,Q55)
action is_in
entity prev_answer
action find
entity Q265123
relation P17
['Q265123', 'P17', 'Q30'] ['Q265123', 'P17', 'Q55']
ASK WHERE { VALUES ( ?o ) { ( resource:Q30 ) ( resource:Q55 ) } . resource:Q265123 property:P17 ?o }
BRDM-1
action is_in
entity prev_answer
action find
entity BRDM-1
relation country
['BRDM-1', 'country', 'United States of America'] ['BRDM-1', 'country', 'Netherlands']
ASK WHERE { VALUES ( ?o ) { ( resource:United_States_of_America ) ( resource:Netherlands ) } . resource:BRDM-1 property:country ?o }
[]
vehicle
SYSTEM
NO
(Q265123,P17,Q30) (Q265123,P17,Q55)
action is_in
entity prev_answer
action find
entity Q265123
relation P17
[ANSWER]
['Q265123', 'P17', 'Q30'] ['Q265123', 'P17', 'Q55']
ASK WHERE { VALUES ( ?o ) { ( resource:Q30 ) ( resource:Q55 ) } . resource:Q265123 property:P17 ?o }
No
action is_in
entity prev_answer
action find
entity BRDM-1
relation country
['BRDM-1', 'country', 'United States of America'] ['BRDM-1', 'country', 'Netherlands']
ASK WHERE { VALUES ( ?o ) { ( resource:United_States_of_America ) ( resource:Netherlands ) } . resource:BRDM-1 property:country ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q55 Q40
P530
Q1048835
USER
How many political territories have ambassadorial relations with Netherlands and Austria ?
(c(Q1048835),P530,Q55) (c(Q1048835),P530,Q40)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q40']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P530 resource:Q55 . ?b rdf:type ontology:Q1048835 . ?b property:P530 resource:Q40 . ?b rdf:type ontology:Q1048835 }
Netherlands Austria
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Austria']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:diplomatic_relation resource:Netherlands . ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation resource:Austria . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q55) (c(Q1048835),P530,Q40)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q40
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q40']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P530 resource:Q55 . ?b rdf:type ontology:Q1048835 . ?b property:P530 resource:Q40 . ?b rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Austria']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:diplomatic_relation resource:Netherlands . ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation resource:Austria . ?b rdf:type ontology:political_territorial_entity }
[]