Simple Question (Direct)
Simple Question
Q5955152
P106
Q12737077
USER
What does Julio César Humada do for a living ?
(Q5955152,P106,c(Q12737077))
action filter_type
action find
entity Q5955152
relation P106
type Q12737077
['Q5955152', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q5955152 property:P106 ?q }
Julio César Humada
action filter_type
action find
entity Julio César Humada
relation occupation
type occupation
['Julio César Humada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Julio_César_Humada property:occupation ?q }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q5955152,P106,c(Q12737077))
action filter_type
action find
entity Q5955152
relation P106
type Q12737077
Julio César Humada does a [ANSWER] for a living
['Q5955152', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q5955152 property:P106 ?q }
politician
Julio César Humada does a politician for a living
politician
action filter_type
action find
entity Julio César Humada
relation occupation
type occupation
['Julio César Humada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Julio_César_Humada property:occupation ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5955152
P20
Q56061
USER
Where did the expiration of Julio César Humada occur ?
(Q5955152,P20,c(Q56061))
action filter_type
action find
entity Q5955152
relation P20
type Q56061
['Q5955152', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q5955152 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Julio César Humada
action filter_type
action find
entity Julio César Humada
relation place of death
type administrative territorial entity
['Julio César Humada', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Julio_César_Humada property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q44238
SYSTEM
Posadas
Q44238
(Q5955152,P20,c(Q56061))
action filter_type
action find
entity Q5955152
relation P20
type Q56061
The expiration of Julio César Humada occurred [ANSWER]
['Q5955152', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q5955152 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Posadas
The expiration of Julio César Humada occurred Posadas
Posadas
action filter_type
action find
entity Julio César Humada
relation place of death
type administrative territorial entity
['Julio César Humada', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Julio_César_Humada property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1037753
Q56061
USER
And also tell me about Ferdinand Hartzer?
(Q1037753,P20,c(Q56061))
action filter_type
action find
entity Q1037753
relation P20
type Q56061
['Q1037753', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1037753 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Ferdinand Hartzer
action filter_type
action find
entity Ferdinand Hartzer
relation place of death
type administrative territorial entity
['Ferdinand Hartzer', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ferdinand_Hartzer property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q1037753,P20,c(Q56061))
action filter_type
action find
entity Q1037753
relation P20
type Q56061
[ANSWER]
['Q1037753', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1037753 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Berlin
Berlin
action filter_type
action find
entity Ferdinand Hartzer
relation place of death
type administrative territorial entity
['Ferdinand Hartzer', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ferdinand_Hartzer property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q64 Q36091
P194
Q1752346
USER
How many assemblies are the representative bodies for Berlin or Minneapolis ?
(Q64,P194,c(Q1752346)) (Q36091,P194,c(Q1752346))
action count
action union
action filter_type
action find
entity Q64
relation P194
type Q1752346
action filter_type
action find
entity Q36091
relation P194
type Q1752346
['Q64', 'P194', {'concept': 'Q1752346'}] ['Q36091', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { resource:Q64 property:P194 ?t . ?t rdf:type ontology:Q1752346 } UNION { resource:Q36091 property:P194 ?t . ?t rdf:type ontology:Q1752346 } }
Berlin Minneapolis
action count
action union
action filter_type
action find
entity Berlin
relation legislative body
type assembly
action filter_type
action find
entity Minneapolis
relation legislative body
type assembly
['Berlin', 'legislative body', {'concept': 'assembly'}] ['Minneapolis', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { resource:Berlin property:legislative_body ?t . ?t rdf:type ontology:assembly } UNION { resource:Minneapolis property:legislative_body ?t . ?t rdf:type ontology:assembly } }
[]
assembly
SYSTEM
2
Q6867972 Q640859
(Q64,P194,c(Q1752346)) (Q36091,P194,c(Q1752346))
action count
action union
action filter_type
action find
entity Q64
relation P194
type Q1752346
action filter_type
action find
entity Q36091
relation P194
type Q1752346
[ANSWER]
['Q64', 'P194', {'concept': 'Q1752346'}] ['Q36091', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { resource:Q64 property:P194 ?t . ?t rdf:type ontology:Q1752346 } UNION { resource:Q36091 property:P194 ?t . ?t rdf:type ontology:Q1752346 } }
Minneapolis City Council Abgeordnetenhaus of Berlin
2
action count
action union
action filter_type
action find
entity Berlin
relation legislative body
type assembly
action filter_type
action find
entity Minneapolis
relation legislative body
type assembly
['Berlin', 'legislative body', {'concept': 'assembly'}] ['Minneapolis', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { resource:Berlin property:legislative_body ?t . ?t rdf:type ontology:assembly } UNION { resource:Minneapolis property:legislative_body ?t . ?t rdf:type ontology:assembly } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4755546 Q5955152
P27
Q15617994
USER
Which administrative territories are Julio César Humada or Andreas Miaoulis a civilian of ?
OR((Q5955152,P27,c(Q15617994)), (Q4755546,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5955152
relation P27
action find
entity Q4755546
relation P27
type Q15617994
{'OR': [['Q5955152', 'P27', {'concept': 'Q15617994'}], ['Q4755546', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q5955152 property:P27 ?p } UNION { resource:Q4755546 property:P27 ?p } } . ?p rdf:type ontology:Q15617994 }
Andreas Miaoulis Julio César Humada
action filter_type
action union
action find
entity Julio César Humada
relation country of citizenship
action find
entity Andreas Miaoulis
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Julio César Humada', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Andreas Miaoulis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Julio_César_Humada property:country_of_citizenship ?p } UNION { resource:Andreas_Miaoulis property:country_of_citizenship ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414 Q41
SYSTEM
Argentina, Greece
Q414 Q41
OR((Q5955152,P27,c(Q15617994)), (Q4755546,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5955152
relation P27
action find
entity Q4755546
relation P27
type Q15617994
[ANSWERS] are Julio César Humada or Andreas Miaoulis a civilian of
{'OR': [['Q5955152', 'P27', {'concept': 'Q15617994'}], ['Q4755546', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q5955152 property:P27 ?p } UNION { resource:Q4755546 property:P27 ?p } } . ?p rdf:type ontology:Q15617994 }
Argentina Greece
Argentina and Greece are Julio César Humada or Andreas Miaoulis a civilian of
Argentina Greece
action filter_type
action union
action find
entity Julio César Humada
relation country of citizenship
action find
entity Andreas Miaoulis
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Julio César Humada', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Andreas Miaoulis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Julio_César_Humada property:country_of_citizenship ?p } UNION { resource:Andreas_Miaoulis property:country_of_citizenship ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?o ) WHERE { ?s property:P530 ?x . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?s } } . FILTER ( ?e = ?i ) . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?e ) WHERE { ?c property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?c } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?o ) WHERE { ?s property:diplomatic_relation ?x . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } } . FILTER ( ?e = ?i ) . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?e ) WHERE { ?c property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?c } }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?o ) WHERE { ?s property:P530 ?x . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?s } } . FILTER ( ?e = ?i ) . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?e ) WHERE { ?c property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?c } }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have diplomatic relations with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?o ) WHERE { ?s property:diplomatic_relation ?x . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } } . FILTER ( ?e = ?i ) . { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?e ) WHERE { ?c property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?c } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q685 Q691
P37
Q34770
USER
Which languages are the official languages of Solomon Islands and Papua New Guinea ?
(Q685,P37,c(Q34770)) (Q691,P37,c(Q34770))
action union
action filter_type
action find
entity Q685
relation P37
type Q34770
action filter_type
action find
entity Q691
relation P37
type Q34770
['Q685', 'P37', {'concept': 'Q34770'}] ['Q691', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { resource:Q685 property:P37 ?a . ?a rdf:type ontology:Q34770 } UNION { ?a rdf:type ontology:Q34770 . resource:Q691 property:P37 ?a } }
Solomon Islands Papua New Guinea
action union
action filter_type
action find
entity Solomon Islands
relation official language
type language
action filter_type
action find
entity Papua New Guinea
relation official language
type language
['Solomon Islands', 'official language', {'concept': 'language'}] ['Papua New Guinea', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { resource:Solomon_Islands property:official_language ?a . ?a rdf:type ontology:language } UNION { ?a rdf:type ontology:language . resource:Papua_New_Guinea property:official_language ?a } }
[]
language
Q1860 Q1860
SYSTEM
English
Q1860 Q1860
(Q685,P37,c(Q34770)) (Q691,P37,c(Q34770))
action union
action filter_type
action find
entity Q685
relation P37
type Q34770
action filter_type
action find
entity Q691
relation P37
type Q34770
And [ANSWER] and [ANSWER] are the official languages of Solomon Islands and Papua New Guinea
['Q685', 'P37', {'concept': 'Q34770'}] ['Q691', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { resource:Q685 property:P37 ?a . ?a rdf:type ontology:Q34770 } UNION { ?a rdf:type ontology:Q34770 . resource:Q691 property:P37 ?a } }
English English
And English and English are the official languages of Solomon Islands and Papua New Guinea
English English
action union
action filter_type
action find
entity Solomon Islands
relation official language
type language
action filter_type
action find
entity Papua New Guinea
relation official language
type language
['Solomon Islands', 'official language', {'concept': 'language'}] ['Papua New Guinea', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { resource:Solomon_Islands property:official_language ?a . ?a rdf:type ontology:language } UNION { ?a rdf:type ontology:language . resource:Papua_New_Guinea property:official_language ?a } }
[]