Simple Question (Direct)
Simple Question
Q5401802
P102
Q7210356
USER
Which political organization is Francesc Carreras i Candi a member of ?
(Q5401802,P102,c(Q7210356))
action filter_type
action find
entity Q5401802
relation P102
type Q7210356
['Q5401802', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q5401802 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Francesc Carreras i Candi
action filter_type
action find
entity Francesc Carreras i Candi
relation member of political party
type political organization
['Francesc Carreras i Candi', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Francesc_Carreras_i_Candi property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
political organization
Q3052430
SYSTEM
Regionalist League
Q3052430
(Q5401802,P102,c(Q7210356))
action filter_type
action find
entity Q5401802
relation P102
type Q7210356
The [ANSWER] is Francesc Carreras i Candi a member of
['Q5401802', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q5401802 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Regionalist League
The Regionalist League is Francesc Carreras i Candi a member of
Regionalist League
action filter_type
action find
entity Francesc Carreras i Candi
relation member of political party
type political organization
['Francesc Carreras i Candi', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Francesc_Carreras_i_Candi property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3052430
P1142
Q7257
USER
Which ideology does that political organization believe in ?
(Q3052430,P1142,c(Q7257))
action filter_type
action find
entity Q3052430
relation P1142
type Q7257
['Q3052430', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?u WHERE { resource:Q3052430 property:P1142 ?u . ?u rdf:type ontology:Q7257 }
Regionalist League
action filter_type
action find
entity Regionalist League
relation political ideology
type ideology
['Regionalist League', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?u WHERE { resource:Regionalist_League property:political_ideology ?u . ?u rdf:type ontology:ideology }
[]
ideology
Q1735599
SYSTEM
Catalan nationalism
Q1735599
(Q3052430,P1142,c(Q7257))
action filter_type
action find
entity Q3052430
relation P1142
type Q7257
That political organization believes in [ANSWER]
['Q3052430', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?u WHERE { resource:Q3052430 property:P1142 ?u . ?u rdf:type ontology:Q7257 }
Catalan nationalism
That political organization believes in Catalan nationalism
Catalan nationalism
action filter_type
action find
entity Regionalist League
relation political ideology
type ideology
['Regionalist League', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?u WHERE { resource:Regionalist_League property:political_ideology ?u . ?u rdf:type ontology:ideology }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3052430
P159
Q56061
USER
Which administrative territory is the HQ of that political organization ?
(Q1735599,P159,c(Q56061))
action filter_type
action find
entity Q3052430
relation P159
type Q56061
['Q1735599', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q3052430 property:P159 ?r }
Regionalist League
action filter_type
action find
entity Regionalist League
relation headquarters location
type administrative territorial entity
['Catalan nationalism', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Regionalist_League property:headquarters_location ?r }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q1735599,P159,c(Q56061))
action filter_type
action find
entity Q3052430
relation P159
type Q56061
[ANSWER] is the HQ of that political organization
['Q1735599', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q3052430 property:P159 ?r }
Barcelona
Barcelona is the HQ of that political organization
Barcelona
action filter_type
action find
entity Regionalist League
relation headquarters location
type administrative territorial entity
['Catalan nationalism', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Regionalist_League property:headquarters_location ?r }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1645760 Q1492
P47 P190
Q56061
USER
Which administrative territories are twin towns of Barcelona or share border with Barillas ?
OR((Q1492,P190,c(Q56061)), (Q1645760,P47,c(Q56061)))
action filter_type
action union
action find
entity Q1492
relation P190
action find
entity Q1645760
relation P47
type Q56061
{'OR': [['Q1492', 'P190', {'concept': 'Q56061'}], ['Q1645760', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { { resource:Q1492 property:P190 ?x } UNION { resource:Q1645760 property:P47 ?x } } }
Barillas Barcelona
action filter_type
action union
action find
entity Barcelona
relation sister city
action find
entity Barillas
relation shares border with
type administrative territorial entity
{'OR': [['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}], ['Barillas', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { { resource:Barcelona property:sister_city ?x } UNION { resource:Barillas property:shares_border_with ?x } } }
[]
administrative territorial entity
Q6506 Q986089 Q47492 Q34820 Q365 Q100 Q6441 Q52535 Q340 Q33986
SYSTEM
Some of them are Varna, Cascante, Gaza City, Santo Domingo, Cologne, Boston, Montpellier, Rosario, Montreal, Valparaíso
Q8717 Q8686 Q12892 Q365 Q100 Q52535 Q42053 Q340 Q6506 Q34820 Q1524 Q1563 Q48320 Q322437 Q33935 Q3561 Q85 Q47492 Q986089 Q174 Q8678 Q33986 Q6441
OR((Q1492,P190,c(Q56061)), (Q1645760,P47,c(Q56061)))
action filter_type
action union
action find
entity Q1492
relation P190
action find
entity Q1645760
relation P47
type Q56061
[ANSWERS] are twin towns of Barcelona or share border with Barillas
{'OR': [['Q1492', 'P190', {'concept': 'Q56061'}], ['Q1645760', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { { resource:Q1492 property:P190 ?x } UNION { resource:Q1645760 property:P47 ?x } } }
Seville Shanghai Antwerp Cologne Boston Rosario Isfahan Montreal Varna Santo Domingo Athens Havana Kōbe Ablitas Tel Aviv Algiers Cairo Gaza City Cascante São Paulo Rio de Janeiro Valparaíso Montpellier
Varna, Cascante, Gaza City, Santo Domingo, Cologne, Boston, Montpellier, Rosario, Montreal and Valparaíso are twin towns of Barcelona or share border with Barillas
Varna Cascante Gaza City Santo Domingo Cologne Boston Montpellier Rosario Montreal Valparaíso
action filter_type
action union
action find
entity Barcelona
relation sister city
action find
entity Barillas
relation shares border with
type administrative territorial entity
{'OR': [['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}], ['Barillas', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { { resource:Barcelona property:sister_city ?x } UNION { resource:Barillas property:shares_border_with ?x } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q33986
P937
Q502895
USER
Which people have that administrative territory as work location ?
(c(Q502895),P937,Q33986)
action filter_type
action find_reverse
entity Q33986
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q33986']
SELECT DISTINCT ?w WHERE { ?w property:P937 resource:Q33986 . ?w rdf:type ontology:Q502895 }
Valparaíso
action filter_type
action find_reverse
entity Valparaíso
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Valparaíso']
SELECT DISTINCT ?w WHERE { ?w property:work_location resource:Valparaíso . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q47492
SYSTEM
Did you mean Gaza City ?
Q6506 Q986089 Q47492 Q34820 Q365 Q100 Q6441 Q52535 Q340 Q33986
(c(Q502895),P937,Q6506) (c(Q502895),P937,Q986089) (c(Q502895),P937,Q47492) (c(Q502895),P937,Q34820) (c(Q502895),P937,Q365) (c(Q502895),P937,Q100) (c(Q502895),P937,Q6441) (c(Q502895),P937,Q52535) (c(Q502895),P937,Q340) (c(Q502895),P937,Q33986)
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q6506'] [{'concept': 'Q502895'}, 'P937', 'Q986089'] [{'concept': 'Q502895'}, 'P937', 'Q47492'] [{'concept': 'Q502895'}, 'P937', 'Q34820'] [{'concept': 'Q502895'}, 'P937', 'Q365'] [{'concept': 'Q502895'}, 'P937', 'Q100'] [{'concept': 'Q502895'}, 'P937', 'Q6441'] [{'concept': 'Q502895'}, 'P937', 'Q52535'] [{'concept': 'Q502895'}, 'P937', 'Q340'] [{'concept': 'Q502895'}, 'P937', 'Q33986']
SELECT DISTINCT ?w WHERE { ?w property:P937 resource:Q33986 . ?w rdf:type ontology:Q502895 }
Varna Cascante Gaza City Santo Domingo Cologne Boston Montpellier Rosario Montreal Valparaíso
Did you mean Gaza City ?
Gaza City
[{'concept': 'common name'}, 'work location', 'Varna'] [{'concept': 'common name'}, 'work location', 'Cascante'] [{'concept': 'common name'}, 'work location', 'Gaza City'] [{'concept': 'common name'}, 'work location', 'Santo Domingo'] [{'concept': 'common name'}, 'work location', 'Cologne'] [{'concept': 'common name'}, 'work location', 'Boston'] [{'concept': 'common name'}, 'work location', 'Montpellier'] [{'concept': 'common name'}, 'work location', 'Rosario'] [{'concept': 'common name'}, 'work location', 'Montreal'] [{'concept': 'common name'}, 'work location', 'Valparaíso']
SELECT DISTINCT ?w WHERE { ?w property:work_location resource:Valparaíso . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Valparaíso. Could you tell me the answer for that?
(c(Q502895),P937,Q33986)
Q33986
[{'concept': 'Q502895'}, 'P937', 'Q33986']
[{'concept': 'common name'}, 'work location', 'Valparaíso']
[]
Q304002 Q16856329
SYSTEM
Theodor Piderit, Roberto Yáñez
Q304002 Q16856329
(c(Q502895),P937,Q33986)
action filter_type
action find_reverse
entity Q33986
relation P937
type Q502895
[ANSWERS] have that administrative territory as work location
[{'concept': 'Q502895'}, 'P937', 'Q33986']
SELECT DISTINCT ?w WHERE { ?w property:P937 resource:Q33986 . ?w rdf:type ontology:Q502895 }
Theodor Piderit Roberto Yáñez
Theodor Piderit and Roberto Yáñez have that administrative territory as work location
Theodor Piderit Roberto Yáñez
action filter_type
action find_reverse
entity Valparaíso
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Valparaíso']
SELECT DISTINCT ?w WHERE { ?w property:work_location resource:Valparaíso . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q340
P127
Q811979 Q811430
USER
How many architectural structures or constructions are owned by Montreal ?
(c(Q811979),P127,Q340) (c(Q811430),P127,Q340)
action count
action union
action filter_type
action find_reverse
entity Q340
relation P127
type Q811979
action filter_type
action find_reverse
entity Q340
relation P127
type Q811430
[{'concept': 'Q811979'}, 'P127', 'Q340'] [{'concept': 'Q811430'}, 'P127', 'Q340']
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:P127 resource:Q340 . ?c rdf:type ontology:Q811979 } UNION { ?c property:P127 resource:Q340 . ?c rdf:type ontology:Q811430 } }
Montreal
action count
action union
action filter_type
action find_reverse
entity Montreal
relation owned by
type architectural structure
action filter_type
action find_reverse
entity Montreal
relation owned by
type construction
[{'concept': 'architectural structure'}, 'owned by', 'Montreal'] [{'concept': 'construction'}, 'owned by', 'Montreal']
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:owned_by resource:Montreal . ?c rdf:type ontology:architectural_structure } UNION { ?c property:owned_by resource:Montreal . ?c rdf:type ontology:construction } }
[]
architectural structure construction
SYSTEM
3
Q2946127 Q3495641 Q5374601
(c(Q811979),P127,Q340) (c(Q811430),P127,Q340)
action count
action union
action filter_type
action find_reverse
entity Q340
relation P127
type Q811979
action filter_type
action find_reverse
entity Q340
relation P127
type Q811430
[ANSWER]
[{'concept': 'Q811979'}, 'P127', 'Q340'] [{'concept': 'Q811430'}, 'P127', 'Q340']
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:P127 resource:Q340 . ?c rdf:type ontology:Q811979 } UNION { ?c property:P127 resource:Q340 . ?c rdf:type ontology:Q811430 } }
Centre Étienne Desmarteau Jarry Park Stadium Empress Theatre
3
action count
action union
action filter_type
action find_reverse
entity Montreal
relation owned by
type architectural structure
action filter_type
action find_reverse
entity Montreal
relation owned by
type construction
[{'concept': 'architectural structure'}, 'owned by', 'Montreal'] [{'concept': 'construction'}, 'owned by', 'Montreal']
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { ?c property:owned_by resource:Montreal . ?c rdf:type ontology:architectural_structure } UNION { ?c property:owned_by resource:Montreal . ?c rdf:type ontology:construction } }
[]