Simple Question (Direct)
Simple Question
Q711527
P21
Q290
USER
What is the sex of Andy On ?
(Q711527,P21,c(Q290))
action filter_type
action find
entity Q711527
relation P21
type Q290
['Q711527', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q711527 property:P21 ?i . ?i rdf:type ontology:Q290 }
Andy On
action filter_type
action find
entity Andy On
relation gender
type sex
['Andy On', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Andy_On property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q711527,P21,c(Q290))
action filter_type
action find
entity Q711527
relation P21
type Q290
The sex of Andy On is the [ANSWER]
['Q711527', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q711527 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of Andy On is the male
male
action filter_type
action find
entity Andy On
relation gender
type sex
['Andy On', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Andy_On property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q711527
P734
Q101352
USER
Which family name is associated with Andy On ?
(Q711527,P734,c(Q101352))
action filter_type
action find
entity Q711527
relation P734
type Q101352
['Q711527', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?s WHERE { resource:Q711527 property:P734 ?s . ?s rdf:type ontology:Q101352 }
Andy On
action filter_type
action find
entity Andy On
relation family name
type family name
['Andy On', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?s WHERE { resource:Andy_On property:family_name ?s . ?s rdf:type ontology:family_name }
[]
family name
Q45749
SYSTEM
An
Q45749
(Q711527,P734,c(Q101352))
action filter_type
action find
entity Q711527
relation P734
type Q101352
She [ANSWER] is associated with [ANSWER]dy On
['Q711527', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?s WHERE { resource:Q711527 property:P734 ?s . ?s rdf:type ontology:Q101352 }
An
She An is associated with Andy On
An
action filter_type
action find
entity Andy On
relation family name
type family name
['Andy On', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?s WHERE { resource:Andy_On property:family_name ?s . ?s rdf:type ontology:family_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 2541 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2541
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?m = 2541 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2541
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?m = 2541 ) }
[]
musical instrument common name
SYSTEM
4
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2541
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?m = 2541 ) }
bass guitar trumpet organ drum kit
4
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2541
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?m = 2541 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17490115 Q711527
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Andy On or Alexandre Vieira dos Santos ?
OR((Q711527,P27,c(Q15617994)), (Q17490115,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q711527
relation P27
action find
entity Q17490115
relation P27
type Q15617994
{'OR': [['Q711527', 'P27', {'concept': 'Q15617994'}], ['Q17490115', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q711527 property:P27 ?x } UNION { resource:Q17490115 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Alexandre Vieira dos Santos Andy On
action filter_type
action union
action find
entity Andy On
relation country of citizenship
action find
entity Alexandre Vieira dos Santos
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andy On', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Alexandre Vieira dos Santos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Andy_On property:country_of_citizenship ?x } UNION { resource:Alexandre_Vieira_dos_Santos property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q148 Q30
SYSTEM
Brazil, People's Republic of China, United States of America
Q155 Q148 Q30
OR((Q711527,P27,c(Q15617994)), (Q17490115,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q711527
relation P27
action find
entity Q17490115
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Andy On or Alexandre Vieira dos Santos
{'OR': [['Q711527', 'P27', {'concept': 'Q15617994'}], ['Q17490115', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q711527 property:P27 ?x } UNION { resource:Q17490115 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Brazil People's Republic of China United States of America
Brazil, People's Republic of China and United States of America are the countries of citizenship of Andy On or Alexandre Vieira dos Santos
Brazil People's Republic of China United States of America
action filter_type
action union
action find
entity Andy On
relation country of citizenship
action find
entity Alexandre Vieira dos Santos
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andy On', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Alexandre Vieira dos Santos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Andy_On property:country_of_citizenship ?x } UNION { resource:Alexandre_Vieira_dos_Santos property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q155 Q117
P530
Q1048835
USER
How many political territories are known to have diplomatic connections with Brazil and Ghana ?
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q117)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q117
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q117']
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P530 resource:Q155 . ?x rdf:type ontology:Q1048835 . ?x property:P530 resource:Q117 . ?x rdf:type ontology:Q1048835 }
Brazil Ghana
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Ghana
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Ghana']
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:diplomatic_relation resource:Brazil . ?x rdf:type ontology:political_territorial_entity . ?x property:diplomatic_relation resource:Ghana . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q117)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q117
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q117']
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P530 resource:Q155 . ?x rdf:type ontology:Q1048835 . ?x property:P530 resource:Q117 . ?x rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Ghana
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Ghana']
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:diplomatic_relation resource:Brazil . ?x rdf:type ontology:political_territorial_entity . ?x property:diplomatic_relation resource:Ghana . ?x rdf:type ontology:political_territorial_entity }
[]