Simple Question (Direct)
Simple Question
Q524714
P136
Q483394
USER
What can be considered as category for Teresa Venerdì ?
(Q524714,P136,c(Q483394))
action filter_type
action find
entity Q524714
relation P136
type Q483394
['Q524714', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?o WHERE { resource:Q524714 property:P136 ?o . ?o rdf:type ontology:Q483394 }
Teresa Venerdì
action filter_type
action find
entity Teresa Venerdì
relation genre
type genre
['Teresa Venerdì', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?o WHERE { resource:Teresa_Venerdì property:genre ?o . ?o rdf:type ontology:genre }
[]
genre
Q859369
SYSTEM
comedy-drama
Q859369
(Q524714,P136,c(Q483394))
action filter_type
action find
entity Q524714
relation P136
type Q483394
[ANSWER] can be considered as category for Teresa Venerdì
['Q524714', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?o WHERE { resource:Q524714 property:P136 ?o . ?o rdf:type ontology:Q483394 }
comedy-drama
Comedy-drama can be considered as category for Teresa Venerdì
comedy-drama
action filter_type
action find
entity Teresa Venerdì
relation genre
type genre
['Teresa Venerdì', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?o WHERE { resource:Teresa_Venerdì property:genre ?o . ?o rdf:type ontology:genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q524714
P2554
Q502895
USER
Who acted as the production designer of that work of art ?
(Q859369,P2554,c(Q502895))
action filter_type
action find
entity Q524714
relation P2554
type Q502895
['Q859369', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q524714 property:P2554 ?d . ?d rdf:type ontology:Q502895 }
Teresa Venerdì
action filter_type
action find
entity Teresa Venerdì
relation production designer
type common name
['comedy-drama', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Teresa_Venerdì property:production_designer ?d . ?d rdf:type ontology:common_name }
[]
common name
Q3887254
SYSTEM
Ottavio Scotti
Q3887254
(Q859369,P2554,c(Q502895))
action filter_type
action find
entity Q524714
relation P2554
type Q502895
[ANSWER] acted as the production designer of that work of art
['Q859369', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q524714 property:P2554 ?d . ?d rdf:type ontology:Q502895 }
Ottavio Scotti
Ottavio Scotti acted as the production designer of that work of art
Ottavio Scotti
action filter_type
action find
entity Teresa Venerdì
relation production designer
type common name
['comedy-drama', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Teresa_Venerdì property:production_designer ?d . ?d rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q3887254 Q20206
P27
Q15617994
USER
Is Klocksin the native country of that person ?
(Q3887254,P27,Q20206)
action is_in
entity Q20206
action find
entity Q3887254
relation P27
['Q3887254', 'P27', 'Q20206']
ASK WHERE { resource:Q3887254 property:P27 resource:Q20206 }
Ottavio Scotti Klocksin
action is_in
entity Klocksin
action find
entity Ottavio Scotti
relation country of citizenship
['Ottavio Scotti', 'country of citizenship', 'Klocksin']
ASK WHERE { resource:Ottavio_Scotti property:country_of_citizenship resource:Klocksin }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3887254,P27,Q20206)
action is_in
entity Q20206
action find
entity Q3887254
relation P27
[ANSWER]
['Q3887254', 'P27', 'Q20206']
ASK WHERE { resource:Q3887254 property:P27 resource:Q20206 }
No
action is_in
entity Klocksin
action find
entity Ottavio Scotti
relation country of citizenship
['Ottavio Scotti', 'country of citizenship', 'Klocksin']
ASK WHERE { resource:Ottavio_Scotti property:country_of_citizenship resource:Klocksin }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q524714 Q38 Q9473
P495
Q15617994
USER
Does Teresa Venerdì have Italy and Monastero di Lanzo as its place of origin ?
(Q524714,P495,Q38) (Q524714,P495,Q9473)
action is_in
entity Q524714
action intersection
action find_reverse
entity Q38
relation P495
action find_reverse
entity Q9473
relation P495
['Q524714', 'P495', 'Q38'] ['Q524714', 'P495', 'Q9473']
ASK WHERE { resource:Q524714 property:P495 resource:Q38 . resource:Q524714 property:P495 resource:Q9473 }
Teresa Venerdì Italy Monastero di Lanzo
action is_in
entity Teresa Venerdì
action intersection
action find_reverse
entity Italy
relation country of origin
action find_reverse
entity Monastero di Lanzo
relation country of origin
['Teresa Venerdì', 'country of origin', 'Italy'] ['Teresa Venerdì', 'country of origin', 'Monastero di Lanzo']
ASK WHERE { resource:Teresa_Venerdì property:country_of_origin resource:Italy . resource:Teresa_Venerdì property:country_of_origin resource:Monastero_di_Lanzo }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q524714,P495,Q38) (Q524714,P495,Q9473)
action is_in
entity Q524714
action intersection
action find_reverse
entity Q38
relation P495
action find_reverse
entity Q9473
relation P495
[ANSWER]
['Q524714', 'P495', 'Q38'] ['Q524714', 'P495', 'Q9473']
ASK WHERE { resource:Q524714 property:P495 resource:Q38 . resource:Q524714 property:P495 resource:Q9473 }
YES and NO respectively
action is_in
entity Teresa Venerdì
action intersection
action find_reverse
entity Italy
relation country of origin
action find_reverse
entity Monastero di Lanzo
relation country of origin
['Teresa Venerdì', 'country of origin', 'Italy'] ['Teresa Venerdì', 'country of origin', 'Monastero di Lanzo']
ASK WHERE { resource:Teresa_Venerdì property:country_of_origin resource:Italy . resource:Teresa_Venerdì property:country_of_origin resource:Monastero_di_Lanzo }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q6619679
USER
Which fictional humanoids have been dubbed by min number of people ?
(c(Q6619679),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q6619679
type Q502895
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?g ) WHERE { ?b property:P725 ?m . ?b rdf:type ontology:Q6619679 . ?m rdf:type ontology:Q502895 } GROUP BY ?b } } . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?o property:P725 ?c . ?o rdf:type ontology:Q6619679 . ?c rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?i = ?q ) }
action argmin
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?g ) WHERE { ?b property:voice_actor ?m . ?b rdf:type ontology:fictional_humanoid . ?m rdf:type ontology:common_name } GROUP BY ?b } } . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?o property:voice_actor ?c . ?o rdf:type ontology:fictional_humanoid . ?c rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?i = ?q ) }
[]
common name fictional humanoid
Q1623086 Q1205263 Q3149148
SYSTEM
Hector Barbossa, Eli Vance, Imoen
Q1623086 Q1205263 Q4992177 Q24010814 Q819585 Q1079617 Q4006757 Q15614636 Q1056953 Q250221 Q3149148 Q757015 Q15620419 Q13471616 Q12879 Q1154920
(c(Q6619679),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q6619679
type Q502895
[ANSWERS] have been dubbed by min number of people
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?g ) WHERE { ?b property:P725 ?m . ?b rdf:type ontology:Q6619679 . ?m rdf:type ontology:Q502895 } GROUP BY ?b } } . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?o property:P725 ?c . ?o rdf:type ontology:Q6619679 . ?c rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?i = ?q ) }
Hector Barbossa Eli Vance Cave Johnson Deckard Cain Jaina Proudmoore Wallace Breen Utena Tenjo Anna (Disney) Minsc Alyx Vance Imoen Sailor Moon Elsa Mr. Bean Toph Beifong Father Grigori
Hector Barbossa, Eli Vance and Imoen have been dubbed by min number of people
Hector Barbossa Eli Vance Imoen
action argmin
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?g ) WHERE { ?b property:voice_actor ?m . ?b rdf:type ontology:fictional_humanoid . ?m rdf:type ontology:common_name } GROUP BY ?b } } . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?o property:voice_actor ?c . ?o rdf:type ontology:fictional_humanoid . ?c rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?i = ?q ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3149148
P1441
Q166142
USER
Which applications contain that fictional humanoid ?
(Q3149148,P1441,c(Q166142))
action filter_type
action find
entity Q3149148
relation P1441
type Q166142
['Q3149148', 'P1441', {'concept': 'Q166142'}]
SELECT DISTINCT ?t WHERE { resource:Q3149148 property:P1441 ?t . ?t rdf:type ontology:Q166142 }
Imoen
action filter_type
action find
entity Imoen
relation present in work
type application
['Imoen', 'present in work', {'concept': 'application'}]
SELECT DISTINCT ?t WHERE { resource:Imoen property:present_in_work ?t . ?t rdf:type ontology:application }
[]
application
Clarification for simple ques.
Q1623086
SYSTEM
Did you mean Hector Barbossa ?
Q1623086 Q1205263 Q3149148
(Q1623086,P1441,c(Q166142)) (Q1205263,P1441,c(Q166142)) (Q3149148,P1441,c(Q166142))
[ANSWER]
['Q1623086', 'P1441', {'concept': 'Q166142'}] ['Q1205263', 'P1441', {'concept': 'Q166142'}] ['Q3149148', 'P1441', {'concept': 'Q166142'}]
SELECT DISTINCT ?t WHERE { resource:Q3149148 property:P1441 ?t . ?t rdf:type ontology:Q166142 }
Hector Barbossa Eli Vance Imoen
Did you mean Hector Barbossa ?
Hector Barbossa
['Hector Barbossa', 'present in work', {'concept': 'application'}] ['Eli Vance', 'present in work', {'concept': 'application'}] ['Imoen', 'present in work', {'concept': 'application'}]
SELECT DISTINCT ?t WHERE { resource:Imoen property:present_in_work ?t . ?t rdf:type ontology:application }
[]
Simple Question (Coreferenced)
USER
No, I meant Imoen. Could you tell me the answer for that?
(Q3149148,P1441,c(Q166142))
Q3149148
['Q3149148', 'P1441', {'concept': 'Q166142'}]
['Imoen', 'present in work', {'concept': 'application'}]
[]
Q804859 Q663583 Q2880740
SYSTEM
Baldur's Gate II: Shadows of Amn, Baldur's Gate, Baldur's Gate II: Throne of Bhaal
Q804859 Q663583 Q2880740
(Q3149148,P1441,c(Q166142))
action filter_type
action find
entity Q3149148
relation P1441
type Q166142
[ANSWERS] contain that fictional humanoid
['Q3149148', 'P1441', {'concept': 'Q166142'}]
SELECT DISTINCT ?t WHERE { resource:Q3149148 property:P1441 ?t . ?t rdf:type ontology:Q166142 }
Baldur's Gate II: Shadows of Amn Baldur's Gate Baldur's Gate II: Throne of Bhaal
Baldur's Gate II: Shadows of Amn, Baldur's Gate and Baldur's Gate II: Throne of Bhaal contain that fictional humanoid
Baldur's Gate II: Shadows of Amn Baldur's Gate Baldur's Gate II: Throne of Bhaal
action filter_type
action find
entity Imoen
relation present in work
type application
['Imoen', 'present in work', {'concept': 'application'}]
SELECT DISTINCT ?t WHERE { resource:Imoen property:present_in_work ?t . ?t rdf:type ontology:application }
[]