Simple Question (Direct)
Simple Question
Q7653555
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Swanand Kirkire ?
(Q7653555,P27,c(Q15617994))
action filter_type
action find
entity Q7653555
relation P27
type Q15617994
['Q7653555', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q7653555 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Swanand Kirkire
action filter_type
action find
entity Swanand Kirkire
relation country of citizenship
type designation for an administrative territorial entity
['Swanand Kirkire', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Swanand_Kirkire property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q7653555,P27,c(Q15617994))
action filter_type
action find
entity Q7653555
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Swanand Kirkire
['Q7653555', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q7653555 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
India
India is the country of citizenship of Swanand Kirkire
India
action filter_type
action find
entity Swanand Kirkire
relation country of citizenship
type designation for an administrative territorial entity
['Swanand Kirkire', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Swanand_Kirkire property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7653555
P161
Q838948
USER
Which work of art has that person in its star cast ?
(c(Q838948),P161,Q668)
action filter_type
action find_reverse
entity Q7653555
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q668']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q838948 . ?r property:P161 resource:Q7653555 }
Swanand Kirkire
action filter_type
action find_reverse
entity Swanand Kirkire
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'India']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:work_of_art . ?r property:cast_member resource:Swanand_Kirkire }
[]
work of art
Q18786418
SYSTEM
Crazy Cukkad Family
Q18786418
(c(Q838948),P161,Q668)
action filter_type
action find_reverse
entity Q7653555
relation P161
type Q838948
[ANSWER] has that person in its star cast
[{'concept': 'Q838948'}, 'P161', 'Q668']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q838948 . ?r property:P161 resource:Q7653555 }
Crazy Cukkad Family
Crazy Cukkad Family has that person in its star cast
Crazy Cukkad Family
action filter_type
action find_reverse
entity Swanand Kirkire
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'India']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:work_of_art . ?r property:cast_member resource:Swanand_Kirkire }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q769532 Q668
P47 P17
Q56061
USER
Which administrative territories are situated in India and have an adjacent border with Jayankondam ?
AND((c(Q56061),P17,Q668), (c(Q56061),P47,Q769532))
action filter_type
action intersection
action find_reverse
entity Q668
relation P17
action find_reverse
entity Q769532
relation P47
type Q56061
{'AND': [[{'concept': 'Q56061'}, 'P17', 'Q668'], [{'concept': 'Q56061'}, 'P47', 'Q769532']]}
SELECT DISTINCT ?x WHERE { ?x property:P17 resource:Q668 . ?x property:P47 resource:Q769532 . ?x rdf:type ontology:Q56061 }
Jayankondam India
action filter_type
action intersection
action find_reverse
entity India
relation country
action find_reverse
entity Jayankondam
relation shares border with
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'country', 'India'], [{'concept': 'administrative territorial entity'}, 'shares border with', 'Jayankondam']]}
SELECT DISTINCT ?x WHERE { ?x property:country resource:India . ?x property:shares_border_with resource:Jayankondam . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4813692 Q7799488
SYSTEM
Athiyur, Thuthur
Q4813692 Q7799488
AND((c(Q56061),P17,Q668), (c(Q56061),P47,Q769532))
action filter_type
action intersection
action find_reverse
entity Q668
relation P17
action find_reverse
entity Q769532
relation P47
type Q56061
[ANSWERS] are situated in India and have an adjacent border with Jayankondam
{'AND': [[{'concept': 'Q56061'}, 'P17', 'Q668'], [{'concept': 'Q56061'}, 'P47', 'Q769532']]}
SELECT DISTINCT ?x WHERE { ?x property:P17 resource:Q668 . ?x property:P47 resource:Q769532 . ?x rdf:type ontology:Q56061 }
Athiyur Thuthur
Athiyur and Thuthur are situated in India and have an adjacent border with Jayankondam
Athiyur Thuthur
action filter_type
action intersection
action find_reverse
entity India
relation country
action find_reverse
entity Jayankondam
relation shares border with
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'country', 'India'], [{'concept': 'administrative territorial entity'}, 'shares border with', 'Jayankondam']]}
SELECT DISTINCT ?x WHERE { ?x property:country resource:India . ?x property:shares_border_with resource:Jayankondam . ?x rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16229963 Q7799488
P27 P17
Q15617994
USER
Which administrative territories are Thuthur a part of or are the countries of citizenship of Francisco Javier Cabezas Chounavelle ?
OR((Q7799488,P17,c(Q15617994)), (Q16229963,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7799488
relation P17
action find
entity Q16229963
relation P27
type Q15617994
{'OR': [['Q7799488', 'P17', {'concept': 'Q15617994'}], ['Q16229963', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q7799488 property:P17 ?t } UNION { resource:Q16229963 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Francisco Javier Cabezas Chounavelle Thuthur
action filter_type
action union
action find
entity Thuthur
relation country
action find
entity Francisco Javier Cabezas Chounavelle
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Thuthur', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Francisco Javier Cabezas Chounavelle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Thuthur property:country ?t } UNION { resource:Francisco_Javier_Cabezas_Chounavelle property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q668
SYSTEM
Spain, India
Q29 Q668
OR((Q7799488,P17,c(Q15617994)), (Q16229963,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7799488
relation P17
action find
entity Q16229963
relation P27
type Q15617994
[ANSWERS] are Thuthur a part of or are the countries of citizenship of Francisco Javier Cabezas Chounavelle
{'OR': [['Q7799488', 'P17', {'concept': 'Q15617994'}], ['Q16229963', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q7799488 property:P17 ?t } UNION { resource:Q16229963 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Spain India
Spain and India are Thuthur a part of or are the countries of citizenship of Francisco Javier Cabezas Chounavelle
Spain India
action filter_type
action union
action find
entity Thuthur
relation country
action find
entity Francisco Javier Cabezas Chounavelle
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Thuthur', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Francisco Javier Cabezas Chounavelle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Thuthur property:country ?t } UNION { resource:Francisco_Javier_Cabezas_Chounavelle property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q668 Q334
P530
Q1048835
USER
How many political territories have tactful political relations with India and Singapore ?
(c(Q1048835),P530,Q668) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q668
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q668'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P530 resource:Q668 . ?u rdf:type ontology:Q1048835 . ?u property:P530 resource:Q334 . ?u rdf:type ontology:Q1048835 }
India Singapore
action count
action intersection
action filter_type
action find_reverse
entity India
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'India'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:diplomatic_relation resource:India . ?u rdf:type ontology:political_territorial_entity . ?u property:diplomatic_relation resource:Singapore . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q668) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q668
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q668'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P530 resource:Q668 . ?u rdf:type ontology:Q1048835 . ?u property:P530 resource:Q334 . ?u rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity India
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'India'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:diplomatic_relation resource:India . ?u rdf:type ontology:political_territorial_entity . ?u property:diplomatic_relation resource:Singapore . ?u rdf:type ontology:political_territorial_entity }
[]