Simple Question (Direct)
Simple Question
Q274375
P21
Q290
USER
What is the sex of Natália Pereira ?
(Q274375,P21,c(Q290))
action filter_type
action find
entity Q274375
relation P21
type Q290
['Q274375', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q274375 property:P21 ?p }
Natália Pereira
action filter_type
action find
entity Natália Pereira
relation gender
type sex
['Natália Pereira', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Natália_Pereira property:gender ?p }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q274375,P21,c(Q290))
action filter_type
action find
entity Q274375
relation P21
type Q290
The sex of Natália Pereira is the [ANSWER]
['Q274375', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q274375 property:P21 ?p }
female
The sex of Natália Pereira is the female
female
action filter_type
action find
entity Natália Pereira
relation gender
type sex
['Natália Pereira', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Natália_Pereira property:gender ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q274375
P54
Q618123
USER
Which geographical object is Natália Pereira a member of ?
(Q274375,P54,c(Q618123))
action filter_type
action find
entity Q274375
relation P54
type Q618123
['Q274375', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?b WHERE { resource:Q274375 property:P54 ?b . ?b rdf:type ontology:Q618123 }
Natália Pereira
action filter_type
action find
entity Natália Pereira
relation member of sports team
type geographical object
['Natália Pereira', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?b WHERE { resource:Natália_Pereira property:member_of_sports_team ?b . ?b rdf:type ontology:geographical_object }
[]
geographical object
Q2710657
SYSTEM
Rio de Janeiro Vôlei Clube
Q2710657
(Q274375,P54,c(Q618123))
action filter_type
action find
entity Q274375
relation P54
type Q618123
[ANSWER] is Natália Pereira a member of
['Q274375', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?b WHERE { resource:Q274375 property:P54 ?b . ?b rdf:type ontology:Q618123 }
Rio de Janeiro Vôlei Clube
Rio de Janeiro Vôlei Clube is Natália Pereira a member of
Rio de Janeiro Vôlei Clube
action filter_type
action find
entity Natália Pereira
relation member of sports team
type geographical object
['Natália Pereira', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?b WHERE { resource:Natália_Pereira property:member_of_sports_team ?b . ?b rdf:type ontology:geographical_object }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q274375
P27
Q15617994
USER
Which administrative territory does Natália Pereira belong to ?
(Q274375,P27,c(Q15617994))
action filter_type
action find
entity Q274375
relation P27
type Q15617994
['Q274375', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q274375 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Natália Pereira
action filter_type
action find
entity Natália Pereira
relation country of citizenship
type designation for an administrative territorial entity
['Natália Pereira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Natália_Pereira property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q274375,P27,c(Q15617994))
action filter_type
action find
entity Q274375
relation P27
type Q15617994
Natália Pereira belongs to [ANSWER]
['Q274375', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q274375 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Brazil
Natália Pereira belongs to Brazil
Brazil
action filter_type
action find
entity Natália Pereira
relation country of citizenship
type designation for an administrative territorial entity
['Natália Pereira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Natália_Pereira property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16337834
Q15617994
USER
And what about Manuca Almeida?
(Q16337834,P27,c(Q15617994))
action filter_type
action find
entity Q16337834
relation P27
type Q15617994
['Q16337834', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q16337834 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Manuca Almeida
action filter_type
action find
entity Manuca Almeida
relation country of citizenship
type designation for an administrative territorial entity
['Manuca Almeida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Manuca_Almeida property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q16337834,P27,c(Q15617994))
action filter_type
action find
entity Q16337834
relation P27
type Q15617994
[ANSWER]
['Q16337834', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q16337834 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Brazil
Brazil
action filter_type
action find
entity Manuca Almeida
relation country of citizenship
type designation for an administrative territorial entity
['Manuca Almeida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Manuca_Almeida property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1649388 Q274375
P106
Q12737077
USER
Which occupations are the job of Natália Pereira or Alfred Kappelmacher ?
OR((Q274375,P106,c(Q12737077)), (Q1649388,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q274375
relation P106
action find
entity Q1649388
relation P106
type Q12737077
{'OR': [['Q274375', 'P106', {'concept': 'Q12737077'}], ['Q1649388', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1649388 property:P106 ?w } UNION { resource:Q274375 property:P106 ?w } } . ?w rdf:type ontology:Q12737077 }
Alfred Kappelmacher Natália Pereira
action filter_type
action union
action find
entity Natália Pereira
relation occupation
action find
entity Alfred Kappelmacher
relation occupation
type occupation
{'OR': [['Natália Pereira', 'occupation', {'concept': 'occupation'}], ['Alfred Kappelmacher', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Alfred_Kappelmacher property:occupation ?w } UNION { resource:Natália_Pereira property:occupation ?w } } . ?w rdf:type ontology:occupation }
[]
occupation
Q17361156 Q37226 Q15117302 Q16267607 Q1622272
SYSTEM
beach volleyball player, teacher, volleyball player, classical philologist, university teacher
Q17361156 Q37226 Q15117302 Q16267607 Q1622272
OR((Q274375,P106,c(Q12737077)), (Q1649388,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q274375
relation P106
action find
entity Q1649388
relation P106
type Q12737077
The [ANSWERS] are the job of Natália Pereira or Alfred Kappelmacher
{'OR': [['Q274375', 'P106', {'concept': 'Q12737077'}], ['Q1649388', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1649388 property:P106 ?w } UNION { resource:Q274375 property:P106 ?w } } . ?w rdf:type ontology:Q12737077 }
beach volleyball player teacher volleyball player classical philologist university teacher
The beach volleyball player, teacher, volleyball player, classical philologist and university teacher are the job of Natália Pereira or Alfred Kappelmacher
beach volleyball player teacher volleyball player classical philologist university teacher
action filter_type
action union
action find
entity Natália Pereira
relation occupation
action find
entity Alfred Kappelmacher
relation occupation
type occupation
{'OR': [['Natália Pereira', 'occupation', {'concept': 'occupation'}], ['Alfred Kappelmacher', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Alfred_Kappelmacher property:occupation ?w } UNION { resource:Natália_Pereira property:occupation ?w } } . ?w rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of the patron saint of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P417 ?y . ?y rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 } GROUP BY ?y } } . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P417 ?d . ?d rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?d } . FILTER ( ?a = ?w ) }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:patron_saint ?y . ?y rdf:type ontology:common_name . ?v rdf:type ontology:occupation } GROUP BY ?y } } . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:patron_saint ?d . ?d rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?d } . FILTER ( ?a = ?w ) }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the names of the patron saint of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P417 ?y . ?y rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 } GROUP BY ?y } } . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P417 ?d . ?d rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?d } . FILTER ( ?a = ?w ) }
Catherine of Alexandria
Catherine of Alexandria is the names of the patron saint of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:patron_saint ?y . ?y rdf:type ontology:common_name . ?v rdf:type ontology:occupation } GROUP BY ?y } } . { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:patron_saint ?d . ?d rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?d } . FILTER ( ?a = ?w ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P915
Q838948
USER
Which works of art were filmed at Brazil ?
(c(Q838948),P915,Q155)
action filter_type
action find_reverse
entity Q155
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q155']
SELECT DISTINCT ?v WHERE { ?v property:P915 resource:Q155 . ?v rdf:type ontology:Q838948 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Brazil']
SELECT DISTINCT ?v WHERE { ?v property:filming_location resource:Brazil . ?v rdf:type ontology:work_of_art }
[]
work of art
Q840495 Q302490 Q1338470
SYSTEM
Miami Vice, The Mission, Emmanuelle 4
Q840495 Q12123479 Q1338470 Q7073341 Q7755932 Q1609621 Q16736285 Q302490 Q18389073
(c(Q838948),P915,Q155)
action filter_type
action find_reverse
entity Q155
relation P915
type Q838948
[ANSWERS] were filmed at Brazil
[{'concept': 'Q838948'}, 'P915', 'Q155']
SELECT DISTINCT ?v WHERE { ?v property:P915 resource:Q155 . ?v rdf:type ontology:Q838948 }
Miami Vice Fuck for Forest Emmanuelle 4 O Terceiro Travesseiro The Palace of Angels BirdWatchers The Salt of the Earth The Mission Macumba Love
Miami Vice, The Mission and Emmanuelle 4 were filmed at Brazil
Miami Vice The Mission Emmanuelle 4
action filter_type
action find_reverse
entity Brazil
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Brazil']
SELECT DISTINCT ?v WHERE { ?v property:filming_location resource:Brazil . ?v rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q840495
P1040
Q502895
USER
Who has editted that work of art ?
(Q840495,P1040,c(Q502895))
action filter_type
action find
entity Q840495
relation P1040
type Q502895
['Q840495', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q840495 property:P1040 ?x . ?x rdf:type ontology:Q502895 }
Miami Vice
action filter_type
action find
entity Miami Vice
relation film editor
type common name
['Miami Vice', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Miami_Vice property:film_editor ?x . ?x rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q302490
SYSTEM
Did you mean The Mission ?
Q840495 Q302490 Q1338470
(Q840495,P1040,c(Q502895)) (Q302490,P1040,c(Q502895)) (Q1338470,P1040,c(Q502895))
[ANSWER]
['Q840495', 'P1040', {'concept': 'Q502895'}] ['Q302490', 'P1040', {'concept': 'Q502895'}] ['Q1338470', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q840495 property:P1040 ?x . ?x rdf:type ontology:Q502895 }
Miami Vice The Mission Emmanuelle 4
Did you mean The Mission ?
The Mission
['Miami Vice', 'film editor', {'concept': 'common name'}] ['The Mission', 'film editor', {'concept': 'common name'}] ['Emmanuelle 4', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Miami_Vice property:film_editor ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Miami Vice. Could you tell me the answer for that?
(Q840495,P1040,c(Q502895))
Q840495
['Q840495', 'P1040', {'concept': 'Q502895'}]
['Miami Vice', 'film editor', {'concept': 'common name'}]
[]
Q2576962
SYSTEM
William Goldenberg
Q2576962
(Q840495,P1040,c(Q502895))
action filter_type
action find
entity Q840495
relation P1040
type Q502895
[ANSWER] has editted that work of art
['Q840495', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q840495 property:P1040 ?x . ?x rdf:type ontology:Q502895 }
William Goldenberg
William Goldenberg has editted that work of art
William Goldenberg
action filter_type
action find
entity Miami Vice
relation film editor
type common name
['Miami Vice', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Miami_Vice property:film_editor ?x . ?x rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?z = ?y ) . { SELECT DISTINCT ( MIN ( ?q ) AS ?y ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?q ) WHERE { ?w property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?f } } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?z = ?y ) . { SELECT DISTINCT ( MIN ( ?q ) AS ?y ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?q ) WHERE { ?w property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?f } } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?z = ?y ) . { SELECT DISTINCT ( MIN ( ?q ) AS ?y ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?q ) WHERE { ?w property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?f } } }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?z = ?y ) . { SELECT DISTINCT ( MIN ( ?q ) AS ?y ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?q ) WHERE { ?w property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?f } } }
[]