Simple Question (Direct)
Simple Question
Q5408570
P21
Q290
USER
Which sex does Eugène Ménégoz possess ?
(Q5408570,P21,c(Q290))
action filter_type
action find
entity Q5408570
relation P21
type Q290
['Q5408570', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q5408570 property:P21 ?q }
Eugène Ménégoz
action filter_type
action find
entity Eugène Ménégoz
relation gender
type sex
['Eugène Ménégoz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Eugène_Ménégoz property:gender ?q }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5408570,P21,c(Q290))
action filter_type
action find
entity Q5408570
relation P21
type Q290
Eugène Ménégoz possesses de [ANSWER]
['Q5408570', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q5408570 property:P21 ?q }
male
Eugène Ménégoz possesses de male
male
action filter_type
action find
entity Eugène Ménégoz
relation gender
type sex
['Eugène Ménégoz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Eugène_Ménégoz property:gender ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5408570
P106
Q12737077
USER
Which occupations have Eugène Ménégoz as his/her 's career ?
(Q5408570,P106,c(Q12737077))
action filter_type
action find
entity Q5408570
relation P106
type Q12737077
['Q5408570', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q5408570 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Eugène Ménégoz
action filter_type
action find
entity Eugène Ménégoz
relation occupation
type occupation
['Eugène Ménégoz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Eugène_Ménégoz property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q1234713 Q1622272
SYSTEM
theologian, university teacher
Q1234713 Q1622272
(Q5408570,P106,c(Q12737077))
action filter_type
action find
entity Q5408570
relation P106
type Q12737077
[ANSWERS] have Eugène Ménégoz as his/her 's career
['Q5408570', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q5408570 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
theologian university teacher
Theologian and university teacher have Eugène Ménégoz as his/her 's career
theologian university teacher
action filter_type
action find
entity Eugène Ménégoz
relation occupation
type occupation
['Eugène Ménégoz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Eugène_Ménégoz property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1622272
P106
Q636497 Q4164871
USER
How many stock characters and positions have a job as university teacher ?
(c(Q636497),P106,Q1622272) (c(Q4164871),P106,Q1622272)
action count
action union
action filter_type
action find_reverse
entity Q1622272
relation P106
type Q636497
action filter_type
action find_reverse
entity Q1622272
relation P106
type Q4164871
[{'concept': 'Q636497'}, 'P106', 'Q1622272'] [{'concept': 'Q4164871'}, 'P106', 'Q1622272']
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { ?q property:P106 resource:Q1622272 . ?q rdf:type ontology:Q4164871 } UNION { ?q property:P106 resource:Q1622272 . ?q rdf:type ontology:Q636497 } }
university teacher
action count
action union
action filter_type
action find_reverse
entity university teacher
relation occupation
type stock character
action filter_type
action find_reverse
entity university teacher
relation occupation
type position
[{'concept': 'stock character'}, 'occupation', 'university teacher'] [{'concept': 'position'}, 'occupation', 'university teacher']
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { ?q property:occupation resource:university_teacher . ?q rdf:type ontology:position } UNION { ?q property:occupation resource:university_teacher . ?q rdf:type ontology:stock_character } }
[]
stock character position
SYSTEM
1 stock characters and 1 positions
Q283111 Q1911054
(c(Q636497),P106,Q1622272) (c(Q4164871),P106,Q1622272)
action count
action union
action filter_type
action find_reverse
entity Q1622272
relation P106
type Q636497
action filter_type
action find_reverse
entity Q1622272
relation P106
type Q4164871
[ANSWER]
[{'concept': 'Q636497'}, 'P106', 'Q1622272'] [{'concept': 'Q4164871'}, 'P106', 'Q1622272']
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { ?q property:P106 resource:Q1622272 . ?q rdf:type ontology:Q4164871 } UNION { ?q property:P106 resource:Q1622272 . ?q rdf:type ontology:Q636497 } }
Professor Moriarty Gerrit van Poelje
1 stock characters and 1 positions
action count
action union
action filter_type
action find_reverse
entity university teacher
relation occupation
type stock character
action filter_type
action find_reverse
entity university teacher
relation occupation
type position
[{'concept': 'stock character'}, 'occupation', 'university teacher'] [{'concept': 'position'}, 'occupation', 'university teacher']
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { ?q property:occupation resource:university_teacher . ?q rdf:type ontology:position } UNION { ?q property:occupation resource:university_teacher . ?q rdf:type ontology:stock_character } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q484761 Q1234713
P361 P425
Q1047113
USER
Which special fields have theologian as the associated fields of occupation or are philosophy of language a component of ?
OR((Q1234713,P425,c(Q1047113)), (Q484761,P361,c(Q1047113)))
action filter_type
action union
action find
entity Q1234713
relation P425
action find
entity Q484761
relation P361
type Q1047113
{'OR': [['Q1234713', 'P425', {'concept': 'Q1047113'}], ['Q484761', 'P361', {'concept': 'Q1047113'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q484761 property:P361 ?f } UNION { resource:Q1234713 property:P425 ?f } } . ?f rdf:type ontology:Q1047113 }
philosophy of language theologian
action filter_type
action union
action find
entity theologian
relation field of this occupation
action find
entity philosophy of language
relation part of
type special field
{'OR': [['theologian', 'field of this occupation', {'concept': 'special field'}], ['philosophy of language', 'part of', {'concept': 'special field'}]]}
SELECT DISTINCT ?f WHERE { { { resource:philosophy_of_language property:part_of ?f } UNION { resource:theologian property:field_of_this_occupation ?f } } . ?f rdf:type ontology:special_field }
[]
special field
Q5891 Q34178
SYSTEM
philosophy, theology
Q5891 Q34178
OR((Q1234713,P425,c(Q1047113)), (Q484761,P361,c(Q1047113)))
action filter_type
action union
action find
entity Q1234713
relation P425
action find
entity Q484761
relation P361
type Q1047113
The [ANSWERS] have theologian as the associated fields of occupation or are philosophy of language a component of
{'OR': [['Q1234713', 'P425', {'concept': 'Q1047113'}], ['Q484761', 'P361', {'concept': 'Q1047113'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q484761 property:P361 ?f } UNION { resource:Q1234713 property:P425 ?f } } . ?f rdf:type ontology:Q1047113 }
philosophy theology
The philosophy and theology have theologian as the associated fields of occupation or are philosophy of language a component of
philosophy theology
action filter_type
action union
action find
entity theologian
relation field of this occupation
action find
entity philosophy of language
relation part of
type special field
{'OR': [['theologian', 'field of this occupation', {'concept': 'special field'}], ['philosophy of language', 'part of', {'concept': 'special field'}]]}
SELECT DISTINCT ?f WHERE { { { resource:philosophy_of_language property:part_of ?f } UNION { resource:theologian property:field_of_this_occupation ?f } } . ?f rdf:type ontology:special_field }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1231760
P136
Q179461
USER
Do Dixit Dominus have those special fields as genre ?
(Q1231760,P136,Q5891) (Q1231760,P136,Q34178)
action is_in
entity prev_answer
action find
entity Q1231760
relation P136
['Q1231760', 'P136', 'Q5891'] ['Q1231760', 'P136', 'Q34178']
ASK WHERE { resource:Q1231760 property:P136 ?v . VALUES ( ?v ) { ( resource:Q5891 ) ( resource:Q34178 ) } }
Dixit Dominus
action is_in
entity prev_answer
action find
entity Dixit Dominus
relation genre
['Dixit Dominus', 'genre', 'philosophy'] ['Dixit Dominus', 'genre', 'theology']
ASK WHERE { resource:Dixit_Dominus property:genre ?v . VALUES ( ?v ) { ( resource:philosophy ) ( resource:theology ) } }
[]
religious text
SYSTEM
NO
(Q1231760,P136,Q5891) (Q1231760,P136,Q34178)
action is_in
entity prev_answer
action find
entity Q1231760
relation P136
[ANSWER]
['Q1231760', 'P136', 'Q5891'] ['Q1231760', 'P136', 'Q34178']
ASK WHERE { resource:Q1231760 property:P136 ?v . VALUES ( ?v ) { ( resource:Q5891 ) ( resource:Q34178 ) } }
No
action is_in
entity prev_answer
action find
entity Dixit Dominus
relation genre
['Dixit Dominus', 'genre', 'philosophy'] ['Dixit Dominus', 'genre', 'theology']
ASK WHERE { resource:Dixit_Dominus property:genre ?v . VALUES ( ?v ) { ( resource:philosophy ) ( resource:theology ) } }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q22833404
Q502895
USER
And what about Mary Fernández?
(Q22833404,P101,c(Q502895))
action filter_type
action find
entity Q22833404
relation P101
type Q502895
['Q22833404', 'P101', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q22833404 property:P101 ?y . ?y rdf:type ontology:Q502895 }
Mary Fernández
action filter_type
action find
entity Mary Fernández
relation field of work
type common name
['Mary Fernández', 'field of work', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Mary_Fernández property:field_of_work ?y . ?y rdf:type ontology:common_name }
[]
common name
Q22833414
SYSTEM
women in STEM
Q22833414
(Q22833404,P101,c(Q502895))
action filter_type
action find
entity Q22833404
relation P101
type Q502895
[ANSWER]
['Q22833404', 'P101', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q22833404 property:P101 ?y . ?y rdf:type ontology:Q502895 }
women in STEM
women in STEM
action filter_type
action find
entity Mary Fernández
relation field of work
type common name
['Mary Fernández', 'field of work', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Mary_Fernández property:field_of_work ?y . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15961987
USER
How many television genres had atmost 14 people as the dubbing artist ?
(c(Q15961987),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 14
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { FILTER ( ?d <= 14 ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?d ) WHERE { ?e property:P725 ?h . ?h rdf:type ontology:Q502895 . ?e rdf:type ontology:Q15961987 } GROUP BY ?e } }
action count
action atmost
action find_tuple_counts
relation voice actor
type television genre
type common name
value 14
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { FILTER ( ?d <= 14 ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?d ) WHERE { ?e property:voice_actor ?h . ?h rdf:type ontology:common_name . ?e rdf:type ontology:television_genre } GROUP BY ?e } }
[]
common name television genre
SYSTEM
14
Q11572 Q24034511 Q11296848 Q7615342 Q3235151 Q576501 Q18790 Q847219 Q53093 Q753848 Q5415 Q886 Q917543 Q2750339
(c(Q15961987),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 14
[ANSWER]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { FILTER ( ?d <= 14 ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?d ) WHERE { ?e property:P725 ?h . ?h rdf:type ontology:Q502895 . ?e rdf:type ontology:Q15961987 } GROUP BY ?e } }
Avatar: The Last Airbender Voltron: Legendary Defender Kiteretsu Daihyakka Steven Universe VeggieTales Garfield and Friends The Legend of Korra Pururun! Shizuku-chan Adventure Time TaleSpin My Little Pony: Friendship Is Magic The Simpsons The Garfield Show Hellsing Ultimate
14
action count
action atmost
action find_tuple_counts
relation voice actor
type television genre
type common name
value 14
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { FILTER ( ?d <= 14 ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?d ) WHERE { ?e property:voice_actor ?h . ?h rdf:type ontology:common_name . ?e rdf:type ontology:television_genre } GROUP BY ?e } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q495
P190
Q56061
USER
Which administrative territories are twin town of Turin ?
(c(Q56061),P190,Q495)
action filter_type
action find
entity Q495
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q495']
SELECT DISTINCT ?o WHERE { resource:Q495 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Turin
action filter_type
action find
entity Turin
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Turin']
SELECT DISTINCT ?o WHERE { resource:Turin property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q365 Q648 Q41621
SYSTEM
Cologne, Lille, Haifa
Q3992 Q41621 Q16010 Q648 Q168929 Q44210 Q365 Q4093 Q34370 Q47492 Q334577 Q914 Q12439 Q23337
(c(Q56061),P190,Q495)
action filter_type
action find
entity Q495
relation P190
type Q56061
[ANSWERS] are twin town of Turin
[{'concept': 'Q56061'}, 'P190', 'Q495']
SELECT DISTINCT ?o WHERE { resource:Q495 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Liège Haifa Esch-sur-Alzette Lille Campo Grande Córdoba Cologne Glasgow Rotterdam Gaza City Quetzaltenango Volgograd Detroit Salt Lake City
Cologne, Lille and Haifa are twin town of Turin
Cologne Lille Haifa
action filter_type
action find
entity Turin
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Turin']
SELECT DISTINCT ?o WHERE { resource:Turin property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q648
P166
Q5127848
USER
What was awarded to that administrative territory ?
(Q648,P166,c(Q5127848))
action filter_type
action find
entity Q648
relation P166
type Q5127848
['Q648', 'P166', {'concept': 'Q5127848'}]
SELECT DISTINCT ?i WHERE { resource:Q648 property:P166 ?i . ?i rdf:type ontology:Q5127848 }
Lille
action filter_type
action find
entity Lille
relation award received
type class
['Lille', 'award received', {'concept': 'class'}]
SELECT DISTINCT ?i WHERE { resource:Lille property:award_received ?i . ?i rdf:type ontology:class }
[]
class
Clarification for simple ques.
Q648
SYSTEM
Did you mean Lille ?
Q365 Q648 Q41621
(Q365,P166,c(Q5127848)) (Q648,P166,c(Q5127848)) (Q41621,P166,c(Q5127848))
[ANSWER]
['Q365', 'P166', {'concept': 'Q5127848'}] ['Q648', 'P166', {'concept': 'Q5127848'}] ['Q41621', 'P166', {'concept': 'Q5127848'}]
SELECT DISTINCT ?i WHERE { resource:Q648 property:P166 ?i . ?i rdf:type ontology:Q5127848 }
Cologne Lille Haifa
Did you mean Lille ?
Lille
['Cologne', 'award received', {'concept': 'class'}] ['Lille', 'award received', {'concept': 'class'}] ['Haifa', 'award received', {'concept': 'class'}]
SELECT DISTINCT ?i WHERE { resource:Lille property:award_received ?i . ?i rdf:type ontology:class }
[]
Simple Question (Coreferenced)
USER
Yes
(Q648,P166,c(Q5127848))
['Q648', 'P166', {'concept': 'Q5127848'}]
['Lille', 'award received', {'concept': 'class'}]
[]
Q163700
SYSTEM
Legion of Honour
Q163700
(Q648,P166,c(Q5127848))
action filter_type
action find
entity Q648
relation P166
type Q5127848
The [ANSWER] was awarded to that administrative territory
['Q648', 'P166', {'concept': 'Q5127848'}]
SELECT DISTINCT ?i WHERE { resource:Q648 property:P166 ?i . ?i rdf:type ontology:Q5127848 }
Legion of Honour
The Legion of Honour was awarded to that administrative territory
Legion of Honour
action filter_type
action find
entity Lille
relation award received
type class
['Lille', 'award received', {'concept': 'class'}]
SELECT DISTINCT ?i WHERE { resource:Lille property:award_received ?i . ?i rdf:type ontology:class }
[]