Simple Question (Direct)
Simple Question
Q2879304
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Bahman Kiarostami ?
(Q2879304,P27,c(Q15617994))
action filter_type
action find
entity Q2879304
relation P27
type Q15617994
['Q2879304', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q2879304 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Bahman Kiarostami
action filter_type
action find
entity Bahman Kiarostami
relation country of citizenship
type designation for an administrative territorial entity
['Bahman Kiarostami', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Bahman_Kiarostami property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q2879304,P27,c(Q15617994))
action filter_type
action find
entity Q2879304
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Bahman Kiarostami
['Q2879304', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q2879304 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Iran
Iran is the country of citizenship of Bahman Kiarostami
Iran
action filter_type
action find
entity Bahman Kiarostami
relation country of citizenship
type designation for an administrative territorial entity
['Bahman Kiarostami', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Bahman_Kiarostami property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q794
P194
Q1752346
USER
Which assemblies represent that administrative territory ?
(Q794,P194,c(Q1752346))
action filter_type
action find
entity Q794
relation P194
type Q1752346
['Q794', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?q WHERE { resource:Q794 property:P194 ?q . ?q rdf:type ontology:Q1752346 }
Iran
action filter_type
action find
entity Iran
relation legislative body
type assembly
['Iran', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?q WHERE { resource:Iran property:legislative_body ?q . ?q rdf:type ontology:assembly }
[]
assembly
Q378605 Q3154693
SYSTEM
Islamic Consultative Assembly, city council
Q378605 Q3154693
(Q794,P194,c(Q1752346))
action filter_type
action find
entity Q794
relation P194
type Q1752346
[ANSWERS] represent that administrative territory
['Q794', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?q WHERE { resource:Q794 property:P194 ?q . ?q rdf:type ontology:Q1752346 }
Islamic Consultative Assembly city council
Islamic Consultative Assembly and city council represent that administrative territory
Islamic Consultative Assembly city council
action filter_type
action find
entity Iran
relation legislative body
type assembly
['Iran', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?q WHERE { resource:Iran property:legislative_body ?q . ?q rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q657
Q1752346
USER
And how about Chad?
(Q657,P194,c(Q1752346))
action filter_type
action find
entity Q657
relation P194
type Q1752346
['Q657', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q657 property:P194 ?e }
Chad
action filter_type
action find
entity Chad
relation legislative body
type assembly
['Chad', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:Chad property:legislative_body ?e }
[]
assembly
Q1599346
SYSTEM
National Assembly
Q1599346
(Q657,P194,c(Q1752346))
action filter_type
action find
entity Q657
relation P194
type Q1752346
[ANSWER]
['Q657', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q657 property:P194 ?e }
National Assembly
National Assembly
action filter_type
action find
entity Chad
relation legislative body
type assembly
['Chad', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:Chad property:legislative_body ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1599346
P361
Q12737077
USER
Which occupation is a component of that assembly ?
(c(Q12737077),P361,Q1599346)
action filter_type
action find_reverse
entity Q1599346
relation P361
type Q12737077
[{'concept': 'Q12737077'}, 'P361', 'Q1599346']
SELECT DISTINCT ?v WHERE { ?v property:P361 resource:Q1599346 . ?v rdf:type ontology:Q12737077 }
National Assembly
action filter_type
action find_reverse
entity National Assembly
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'National Assembly']
SELECT DISTINCT ?v WHERE { ?v property:part_of resource:National_Assembly . ?v rdf:type ontology:occupation }
[]
occupation
Q21295978
SYSTEM
Member of the National Assembly of Chad
Q21295978
(c(Q12737077),P361,Q1599346)
action filter_type
action find_reverse
entity Q1599346
relation P361
type Q12737077
[ANSWER] is a component of that assembly
[{'concept': 'Q12737077'}, 'P361', 'Q1599346']
SELECT DISTINCT ?v WHERE { ?v property:P361 resource:Q1599346 . ?v rdf:type ontology:Q12737077 }
Member of the National Assembly of Chad
Member of the National Assembly of Chad is a component of that assembly
Member of the National Assembly of Chad
action filter_type
action find_reverse
entity National Assembly
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'National Assembly']
SELECT DISTINCT ?v WHERE { ?v property:part_of resource:National_Assembly . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1599346
P17
Q15617994
USER
Which administrative territory is that assembly located in ?
(Q21295978,P17,c(Q15617994))
action filter_type
action find
entity Q1599346
relation P17
type Q15617994
['Q21295978', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1599346 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
National Assembly
action filter_type
action find
entity National Assembly
relation country
type designation for an administrative territorial entity
['Member of the National Assembly of Chad', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:National_Assembly property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q657
SYSTEM
Chad
Q657
(Q21295978,P17,c(Q15617994))
action filter_type
action find
entity Q1599346
relation P17
type Q15617994
That assembly is located in [ANSWER]
['Q21295978', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1599346 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Chad
That assembly is located in Chad
Chad
action filter_type
action find
entity National Assembly
relation country
type designation for an administrative territorial entity
['Member of the National Assembly of Chad', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:National_Assembly property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q657
P36
Q56061
USER
Which administrative territory is called the capital of that administrative territory ?
(Q657,P36,c(Q56061))
action filter_type
action find
entity Q657
relation P36
type Q56061
['Q657', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q657 property:P36 ?x . ?x rdf:type ontology:Q56061 }
Chad
action filter_type
action find
entity Chad
relation capital
type administrative territorial entity
['Chad', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Chad property:capital ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3659
SYSTEM
N'Djamena
Q3659
(Q657,P36,c(Q56061))
action filter_type
action find
entity Q657
relation P36
type Q56061
Capital [ANSWER] is called the capital of that administrative territory
['Q657', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q657 property:P36 ?x . ?x rdf:type ontology:Q56061 }
N'Djamena
Capital N'Djamena is called the capital of that administrative territory
N'Djamena
action filter_type
action find
entity Chad
relation capital
type administrative territorial entity
['Chad', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Chad property:capital ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18516999 Q657
P17
Q15617994
USER
Which administrative territories are Chad or Jhang City railway station situated in ?
OR((Q657,P17,c(Q15617994)), (Q18516999,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q657
relation P17
action find
entity Q18516999
relation P17
type Q15617994
{'OR': [['Q657', 'P17', {'concept': 'Q15617994'}], ['Q18516999', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q657 property:P17 ?w } UNION { resource:Q18516999 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Jhang City railway station Chad
action filter_type
action union
action find
entity Chad
relation country
action find
entity Jhang City railway station
relation country
type designation for an administrative territorial entity
{'OR': [['Chad', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jhang City railway station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Chad property:country ?w } UNION { resource:Jhang_City_railway_station property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q843 Q657
SYSTEM
Pakistan, Chad
Q843 Q657
OR((Q657,P17,c(Q15617994)), (Q18516999,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q657
relation P17
action find
entity Q18516999
relation P17
type Q15617994
Chad or Jhang City railway station in are situated in [ANSWERS]
{'OR': [['Q657', 'P17', {'concept': 'Q15617994'}], ['Q18516999', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q657 property:P17 ?w } UNION { resource:Q18516999 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Pakistan Chad
Chad or Jhang City railway station in are situated in Pakistan and Chad
Pakistan Chad
action filter_type
action union
action find
entity Chad
relation country
action find
entity Jhang City railway station
relation country
type designation for an administrative territorial entity
{'OR': [['Chad', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jhang City railway station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Chad property:country ?w } UNION { resource:Jhang_City_railway_station property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]