Simple Question (Direct)
Simple Question
Q2829853
P734
Q82799
USER
Who is associated with Alain Gest ?
(Q2829853,P734,c(Q82799))
action filter_type
action find
entity Q2829853
relation P734
type Q82799
['Q2829853', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q82799 . resource:Q2829853 property:P734 ?x }
Alain Gest
action filter_type
action find
entity Alain Gest
relation family name
type name
['Alain Gest', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:name . resource:Alain_Gest property:family_name ?x }
[]
name
Q16870171
SYSTEM
Gest
Q16870171
(Q2829853,P734,c(Q82799))
action filter_type
action find
entity Q2829853
relation P734
type Q82799
It [ANSWER] is associated with Alain [ANSWER]
['Q2829853', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q82799 . resource:Q2829853 property:P734 ?x }
Gest
It Gest is associated with Alain Gest
Gest
action filter_type
action find
entity Alain Gest
relation family name
type name
['Alain Gest', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:name . resource:Alain_Gest property:family_name ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2829853
P102
Q7210356
USER
Which party does Alain Gest belong to ?
(Q2829853,P102,c(Q7210356))
action filter_type
action find
entity Q2829853
relation P102
type Q7210356
['Q2829853', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q2829853 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Alain Gest
action filter_type
action find
entity Alain Gest
relation member of political party
type political organization
['Alain Gest', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Alain_Gest property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
political organization
Q173152
SYSTEM
Union for a Popular Movement
Q173152
(Q2829853,P102,c(Q7210356))
action filter_type
action find
entity Q2829853
relation P102
type Q7210356
Alain Gest belongs to [ANSWER]
['Q2829853', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q2829853 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Union for a Popular Movement
Alain Gest belongs to Union for a Popular Movement
Union for a Popular Movement
action filter_type
action find
entity Alain Gest
relation member of political party
type political organization
['Alain Gest', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Alain_Gest property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2829853
P19
Q56061
USER
Which administrative territory is the place of birth of Alain Gest ?
(Q2829853,P19,c(Q56061))
action filter_type
action find
entity Q2829853
relation P19
type Q56061
['Q2829853', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2829853 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Alain Gest
action filter_type
action find
entity Alain Gest
relation place of birth
type administrative territorial entity
['Alain Gest', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Alain_Gest property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q41604
SYSTEM
Amiens
Q41604
(Q2829853,P19,c(Q56061))
action filter_type
action find
entity Q2829853
relation P19
type Q56061
[ANSWER] is the place of birth of Alain Gest
['Q2829853', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2829853 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Amiens
Amiens is the place of birth of Alain Gest
Amiens
action filter_type
action find
entity Alain Gest
relation place of birth
type administrative territorial entity
['Alain Gest', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Alain_Gest property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6025019
Q56061
USER
And also tell me about Johannes Olivegren?
(Q6025019,P19,c(Q56061))
action filter_type
action find
entity Q6025019
relation P19
type Q56061
['Q6025019', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q6025019 property:P19 ?m }
Johannes Olivegren
action filter_type
action find
entity Johannes Olivegren
relation place of birth
type administrative territorial entity
['Johannes Olivegren', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Johannes_Olivegren property:place_of_birth ?m }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q6025019,P19,c(Q56061))
action filter_type
action find
entity Q6025019
relation P19
type Q56061
[ANSWER]
['Q6025019', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q6025019 property:P19 ?m }
Stockholm
Stockholm
action filter_type
action find
entity Johannes Olivegren
relation place of birth
type administrative territorial entity
['Johannes Olivegren', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Johannes_Olivegren property:place_of_birth ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6025019
P20
Q15700808
USER
Where did the demise of that person occur ?
(Q1754,P20,c(Q15700808))
action filter_type
action find
entity Q6025019
relation P20
type Q15700808
['Q1754', 'P20', {'concept': 'Q15700808'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15700808 . resource:Q6025019 property:P20 ?m }
Johannes Olivegren
action filter_type
action find
entity Johannes Olivegren
relation place of death
type urban unit definition
['Stockholm', 'place of death', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:urban_unit_definition . resource:Johannes_Olivegren property:place_of_death ?m }
[]
urban unit definition
Q54349
SYSTEM
Lidingö
Q54349
(Q1754,P20,c(Q15700808))
action filter_type
action find
entity Q6025019
relation P20
type Q15700808
The demise of that person occurred in [ANSWER]
['Q1754', 'P20', {'concept': 'Q15700808'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15700808 . resource:Q6025019 property:P20 ?m }
Lidingö
The demise of that person occurred in Lidingö
Lidingö
action filter_type
action find
entity Johannes Olivegren
relation place of death
type urban unit definition
['Stockholm', 'place of death', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:urban_unit_definition . resource:Johannes_Olivegren property:place_of_death ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q54349
P159
Q43229
USER
Which organizations have the principal seat at that urban unit definition ?
(c(Q43229),P159,Q54349)
action filter_type
action find_reverse
entity Q54349
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q54349']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q43229 . ?m property:P159 resource:Q54349 }
Lidingö
action filter_type
action find_reverse
entity Lidingö
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Lidingö']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:organization . ?m property:headquarters_location resource:Lidingö }
[]
organization
Q1456679 Q422013
SYSTEM
Svenska Aero, AGA AB
Q1456679 Q422013
(c(Q43229),P159,Q54349)
action filter_type
action find_reverse
entity Q54349
relation P159
type Q43229
[ANSWERS] have the principal seat at that urban unit definition
[{'concept': 'Q43229'}, 'P159', 'Q54349']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q43229 . ?m property:P159 resource:Q54349 }
Svenska Aero AGA AB
Svenska Aero and AGA AB have the principal seat at that urban unit definition
Svenska Aero AGA AB
action filter_type
action find_reverse
entity Lidingö
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Lidingö']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:organization . ?m property:headquarters_location resource:Lidingö }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q54349
P1376
Q914262
USER
Which administrative territory of Sweden has Lidingö has its center of administration ?
(Q54349,P1376,c(Q914262))
action filter_type
action find
entity Q54349
relation P1376
type Q914262
['Q54349', 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ?j WHERE { resource:Q54349 property:P1376 ?j . ?j rdf:type ontology:Q914262 }
Lidingö
action filter_type
action find
entity Lidingö
relation capital of
type administrative territorial entity of Sweden
['Lidingö', 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?j WHERE { resource:Lidingö property:capital_of ?j . ?j rdf:type ontology:administrative_territorial_entity_of_Sweden }
[]
administrative territorial entity of Sweden
Q3120654
SYSTEM
Lidingö Municipality
Q3120654
(Q54349,P1376,c(Q914262))
action filter_type
action find
entity Q54349
relation P1376
type Q914262
[ANSWER] has Lidingö has its center of administration
['Q54349', 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ?j WHERE { resource:Q54349 property:P1376 ?j . ?j rdf:type ontology:Q914262 }
Lidingö Municipality
Lidingö Municipality has Lidingö has its center of administration
Lidingö Municipality
action filter_type
action find
entity Lidingö
relation capital of
type administrative territorial entity of Sweden
['Lidingö', 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?j WHERE { resource:Lidingö property:capital_of ?j . ?j rdf:type ontology:administrative_territorial_entity_of_Sweden }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q654299 Q54349
P1376
Q914262
USER
Or Nässjö?
OR((Q54349,P1376,c(Q914262)), (Q654299,P1376,c(Q914262)))
action filter_type
action union
action find
entity Q54349
relation P1376
action find
entity Q654299
relation P1376
type Q914262
{'OR': [['Q54349', 'P1376', {'concept': 'Q914262'}], ['Q654299', 'P1376', {'concept': 'Q914262'}]]}
SELECT DISTINCT ?v WHERE { { ?x property:P1376 ?v . VALUES ( ?x ) { ( resource:Q54349 ) ( resource:Q654299 ) } } . ?v rdf:type ontology:Q914262 }
Nässjö Lidingö
action filter_type
action union
action find
entity Lidingö
relation capital of
action find
entity Nässjö
relation capital of
type administrative territorial entity of Sweden
{'OR': [['Lidingö', 'capital of', {'concept': 'administrative territorial entity of Sweden'}], ['Nässjö', 'capital of', {'concept': 'administrative territorial entity of Sweden'}]]}
SELECT DISTINCT ?v WHERE { { ?x property:capital_of ?v . VALUES ( ?x ) { ( resource:Lidingö ) ( resource:Nässjö ) } } . ?v rdf:type ontology:administrative_territorial_entity_of_Sweden }
[]
administrative territorial entity of Sweden
Q3120654 Q505096
SYSTEM
Lidingö Municipality, Nässjö Municipality
Q3120654 Q505096
OR((Q54349,P1376,c(Q914262)), (Q654299,P1376,c(Q914262)))
action filter_type
action union
action find
entity Q54349
relation P1376
action find
entity Q654299
relation P1376
type Q914262
[ANSWERS]
{'OR': [['Q54349', 'P1376', {'concept': 'Q914262'}], ['Q654299', 'P1376', {'concept': 'Q914262'}]]}
SELECT DISTINCT ?v WHERE { { ?x property:P1376 ?v . VALUES ( ?x ) { ( resource:Q54349 ) ( resource:Q654299 ) } } . ?v rdf:type ontology:Q914262 }
Lidingö Municipality Nässjö Municipality
Lidingö Municipality Nässjö Municipality
action filter_type
action union
action find
entity Lidingö
relation capital of
action find
entity Nässjö
relation capital of
type administrative territorial entity of Sweden
{'OR': [['Lidingö', 'capital of', {'concept': 'administrative territorial entity of Sweden'}], ['Nässjö', 'capital of', {'concept': 'administrative territorial entity of Sweden'}]]}
SELECT DISTINCT ?v WHERE { { ?x property:capital_of ?v . VALUES ( ?x ) { ( resource:Lidingö ) ( resource:Nässjö ) } } . ?v rdf:type ontology:administrative_territorial_entity_of_Sweden }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P1376
Q56061
USER
How many administrative territories are the capital of that administrative territory of Sweden ?
(c(Q56061),P1376,Q505096)
[{'concept': 'Q56061'}, 'P1376', 'Q505096']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1376 resource:Q505096 . ?z rdf:type ontology:Q56061 }
[{'concept': 'administrative territorial entity'}, 'capital of', 'Nässjö Municipality']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:capital_of resource:Nässjö_Municipality . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q3120654
SYSTEM
Did you mean Lidingö Municipality ?
(c(Q56061),P1376,Q3120654) (c(Q56061),P1376,Q505096)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q3120654'] [{'concept': 'Q56061'}, 'P1376', 'Q505096']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1376 resource:Q505096 . ?z rdf:type ontology:Q56061 }
Did you mean Lidingö Municipality ?
Lidingö Municipality
[{'concept': 'administrative territorial entity'}, 'capital of', 'Lidingö Municipality'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Nässjö Municipality']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:capital_of resource:Nässjö_Municipality . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Nässjö Municipality. Could you tell me the answer for that?
(c(Q56061),P1376,Q505096)
Q505096
[{'concept': 'Q56061'}, 'P1376', 'Q505096']
[{'concept': 'administrative territorial entity'}, 'capital of', 'Nässjö Municipality']
[]
SYSTEM
1
Q654299
(c(Q56061),P1376,Q505096)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q505096']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1376 resource:Q505096 . ?z rdf:type ontology:Q56061 }
Nässjö
1
[{'concept': 'administrative territorial entity'}, 'capital of', 'Nässjö Municipality']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:capital_of resource:Nässjö_Municipality . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3120654 Q1515
P190
Q515
USER
How many cities are twin town of Lidingö Municipality or Abidjan ?
(c(Q515),P190,Q3120654) (c(Q515),P190,Q1515)
action count
action union
action filter_type
action find_reverse
entity Q3120654
relation P190
type Q515
action filter_type
action find_reverse
entity Q1515
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q3120654'] [{'concept': 'Q515'}, 'P190', 'Q1515']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s property:P190 resource:Q1515 . ?s rdf:type ontology:Q515 } UNION { ?s property:P190 resource:Q3120654 . ?s rdf:type ontology:Q515 } }
Lidingö Municipality Abidjan
action count
action union
action filter_type
action find_reverse
entity Lidingö Municipality
relation sister city
type city
action filter_type
action find_reverse
entity Abidjan
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Lidingö Municipality'] [{'concept': 'city'}, 'sister city', 'Abidjan']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s property:sister_city resource:Abidjan . ?s rdf:type ontology:city } UNION { ?s property:sister_city resource:Lidingö_Municipality . ?s rdf:type ontology:city } }
[]
city
SYSTEM
2
Q23482 Q11736
(c(Q515),P190,Q3120654) (c(Q515),P190,Q1515)
action count
action union
action filter_type
action find_reverse
entity Q3120654
relation P190
type Q515
action filter_type
action find_reverse
entity Q1515
relation P190
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q3120654'] [{'concept': 'Q515'}, 'P190', 'Q1515']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s property:P190 resource:Q1515 . ?s rdf:type ontology:Q515 } UNION { ?s property:P190 resource:Q3120654 . ?s rdf:type ontology:Q515 } }
Marseille Tianjin
2
action count
action union
action filter_type
action find_reverse
entity Lidingö Municipality
relation sister city
type city
action filter_type
action find_reverse
entity Abidjan
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Lidingö Municipality'] [{'concept': 'city'}, 'sister city', 'Abidjan']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s property:sister_city resource:Abidjan . ?s rdf:type ontology:city } UNION { ?s property:sister_city resource:Lidingö_Municipality . ?s rdf:type ontology:city } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3120654
P17
Q15617994
USER
Which administrative territory is Lidingö Municipality located in ?
(Q3120654,P17,c(Q15617994))
action filter_type
action find
entity Q3120654
relation P17
type Q15617994
['Q3120654', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q3120654 property:P17 ?u }
Lidingö Municipality
action filter_type
action find
entity Lidingö Municipality
relation country
type designation for an administrative territorial entity
['Lidingö Municipality', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lidingö_Municipality property:country ?u }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q3120654,P17,c(Q15617994))
action filter_type
action find
entity Q3120654
relation P17
type Q15617994
Which administrative territory is Lidingö Municipality located in
['Q3120654', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q3120654 property:P17 ?u }
Sweden
Which administrative territory is Lidingö Municipality located in
Sweden
action filter_type
action find
entity Lidingö Municipality
relation country
type designation for an administrative territorial entity
['Lidingö Municipality', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lidingö_Municipality property:country ?u }
[]