Simple Question (Direct)
Simple Question
Q287835
P734
Q82799
USER
Who is associated with Andrea Parker ?
(Q287835,P734,c(Q82799))
action filter_type
action find
entity Q287835
relation P734
type Q82799
['Q287835', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q82799 . resource:Q287835 property:P734 ?e }
Andrea Parker
action filter_type
action find
entity Andrea Parker
relation family name
type name
['Andrea Parker', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:name . resource:Andrea_Parker property:family_name ?e }
[]
name
Q1628041
SYSTEM
Parker
Q1628041
(Q287835,P734,c(Q82799))
action filter_type
action find
entity Q287835
relation P734
type Q82799
[ANSWER] is associated with Andrea [ANSWER]
['Q287835', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q82799 . resource:Q287835 property:P734 ?e }
Parker
Parker is associated with Andrea Parker
Parker
action filter_type
action find
entity Andrea Parker
relation family name
type name
['Andrea Parker', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:name . resource:Andrea_Parker property:family_name ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q287835
P21
Q290
USER
What is the sex of Andrea Parker ?
(Q287835,P21,c(Q290))
action filter_type
action find
entity Q287835
relation P21
type Q290
['Q287835', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q287835 property:P21 ?s . ?s rdf:type ontology:Q290 }
Andrea Parker
action filter_type
action find
entity Andrea Parker
relation gender
type sex
['Andrea Parker', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Andrea_Parker property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q287835,P21,c(Q290))
action filter_type
action find
entity Q287835
relation P21
type Q290
The sex of Andrea Parker is the [ANSWER]
['Q287835', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q287835 property:P21 ?s . ?s rdf:type ontology:Q290 }
female
The sex of Andrea Parker is the female
female
action filter_type
action find
entity Andrea Parker
relation gender
type sex
['Andrea Parker', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Andrea_Parker property:gender ?s . ?s rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q287835
P106
Q28640 Q12737077
USER
How many professions or occupations are the professions of Andrea Parker ?
(Q287835,P106,c(Q28640)) (Q287835,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q287835
relation P106
type Q28640
action filter_type
action find
entity Q287835
relation P106
type Q12737077
['Q287835', 'P106', {'concept': 'Q28640'}] ['Q287835', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { resource:Q287835 property:P106 ?x . ?x rdf:type ontology:Q28640 } UNION { resource:Q287835 property:P106 ?x . ?x rdf:type ontology:Q12737077 } }
Andrea Parker
action count
action union
action filter_type
action find
entity Andrea Parker
relation occupation
type profession
action filter_type
action find
entity Andrea Parker
relation occupation
type occupation
['Andrea Parker', 'occupation', {'concept': 'profession'}] ['Andrea Parker', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { resource:Andrea_Parker property:occupation ?x . ?x rdf:type ontology:profession } UNION { resource:Andrea_Parker property:occupation ?x . ?x rdf:type ontology:occupation } }
[]
profession occupation
SYSTEM
4
Q805221 Q10800557 Q33999 Q10798782
(Q287835,P106,c(Q28640)) (Q287835,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q287835
relation P106
type Q28640
action filter_type
action find
entity Q287835
relation P106
type Q12737077
[ANSWER]
['Q287835', 'P106', {'concept': 'Q28640'}] ['Q287835', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { resource:Q287835 property:P106 ?x . ?x rdf:type ontology:Q28640 } UNION { resource:Q287835 property:P106 ?x . ?x rdf:type ontology:Q12737077 } }
ballet dancer film actor actor television actor
4
action count
action union
action filter_type
action find
entity Andrea Parker
relation occupation
type profession
action filter_type
action find
entity Andrea Parker
relation occupation
type occupation
['Andrea Parker', 'occupation', {'concept': 'profession'}] ['Andrea Parker', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { resource:Andrea_Parker property:occupation ?x . ?x rdf:type ontology:profession } UNION { resource:Andrea_Parker property:occupation ?x . ?x rdf:type ontology:occupation } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q287835
P106
Q12737077
USER
What are the professions of that person ?
action filter_type
action find
entity Q287835
relation P106
type Q12737077
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q287835 property:P106 ?g }
Andrea Parker
action filter_type
action find
entity Andrea Parker
relation occupation
type occupation
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Andrea_Parker property:occupation ?g }
[]
occupation
Q805221 Q10798782 Q33999
SYSTEM
ballet dancer, television actor, actor
Q805221 Q10798782 Q33999
action filter_type
action find
entity Q287835
relation P106
type Q12737077
The professions of that person are [ANSWERS]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q287835 property:P106 ?g }
ballet dancer television actor actor
The professions of that person are ballet dancer, television actor and actor
ballet dancer television actor actor
action filter_type
action find
entity Andrea Parker
relation occupation
type occupation
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Andrea_Parker property:occupation ?g }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q47664
P106
Q502895
USER
Do Catherine Zeta-Jones have the profession as those occupations ?
(Q47664,P106,Q805221) (Q47664,P106,Q10798782) (Q47664,P106,Q33999)
action is_in
entity prev_answer
action find
entity Q47664
relation P106
['Q47664', 'P106', 'Q805221'] ['Q47664', 'P106', 'Q10798782'] ['Q47664', 'P106', 'Q33999']
ASK WHERE { resource:Q47664 property:P106 ?f . VALUES ( ?f ) { ( resource:Q805221 ) ( resource:Q10798782 ) ( resource:Q33999 ) } }
Catherine Zeta-Jones
action is_in
entity prev_answer
action find
entity Catherine Zeta-Jones
relation occupation
['Catherine Zeta-Jones', 'occupation', 'ballet dancer'] ['Catherine Zeta-Jones', 'occupation', 'television actor'] ['Catherine Zeta-Jones', 'occupation', 'actor']
ASK WHERE { resource:Catherine_Zeta-Jones property:occupation ?f . VALUES ( ?f ) { ( resource:ballet_dancer ) ( resource:television_actor ) ( resource:actor ) } }
[]
common name
SYSTEM
YES
(Q47664,P106,Q805221) (Q47664,P106,Q10798782) (Q47664,P106,Q33999)
action is_in
entity prev_answer
action find
entity Q47664
relation P106
[ANSWER]
['Q47664', 'P106', 'Q805221'] ['Q47664', 'P106', 'Q10798782'] ['Q47664', 'P106', 'Q33999']
ASK WHERE { resource:Q47664 property:P106 ?f . VALUES ( ?f ) { ( resource:Q805221 ) ( resource:Q10798782 ) ( resource:Q33999 ) } }
Yes
action is_in
entity prev_answer
action find
entity Catherine Zeta-Jones
relation occupation
['Catherine Zeta-Jones', 'occupation', 'ballet dancer'] ['Catherine Zeta-Jones', 'occupation', 'television actor'] ['Catherine Zeta-Jones', 'occupation', 'actor']
ASK WHERE { resource:Catherine_Zeta-Jones property:occupation ?f . VALUES ( ?f ) { ( resource:ballet_dancer ) ( resource:television_actor ) ( resource:actor ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1628041 Q4494885
P407
Q34770
USER
Is Parker in Qara-Qan Uyghur language ?
(Q1628041,P407,Q4494885)
action is_in
entity Q4494885
action find
entity Q1628041
relation P407
['Q1628041', 'P407', 'Q4494885']
ASK WHERE { resource:Q1628041 property:P407 resource:Q4494885 }
Parker Qara-Qan Uyghur language
action is_in
entity Qara-Qan Uyghur language
action find
entity Parker
relation language of work or name
['Parker', 'language of work or name', 'Qara-Qan Uyghur language']
ASK WHERE { resource:Parker property:language_of_work_or_name resource:Qara-Qan_Uyghur_language }
[]
language
SYSTEM
NO
(Q1628041,P407,Q4494885)
action is_in
entity Q4494885
action find
entity Q1628041
relation P407
[ANSWER]
['Q1628041', 'P407', 'Q4494885']
ASK WHERE { resource:Q1628041 property:P407 resource:Q4494885 }
No
action is_in
entity Qara-Qan Uyghur language
action find
entity Parker
relation language of work or name
['Parker', 'language of work or name', 'Qara-Qan Uyghur language']
ASK WHERE { resource:Parker property:language_of_work_or_name resource:Qara-Qan_Uyghur_language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q287835
P161
Q838948 Q15416
USER
How many works of art and television programs have Andrea Parker in their star cast ?
(c(Q838948),P161,Q287835) (c(Q15416),P161,Q287835)
action count
action union
action filter_type
action find_reverse
entity Q287835
relation P161
type Q838948
action filter_type
action find_reverse
entity Q287835
relation P161
type Q15416
[{'concept': 'Q838948'}, 'P161', 'Q287835'] [{'concept': 'Q15416'}, 'P161', 'Q287835']
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } }
Andrea Parker
action count
action union
action filter_type
action find_reverse
entity Andrea Parker
relation cast member
type work of art
action filter_type
action find_reverse
entity Andrea Parker
relation cast member
type television program
[{'concept': 'work of art'}, 'cast member', 'Andrea Parker'] [{'concept': 'television program'}, 'cast member', 'Andrea Parker']
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:work_of_art ) ( ontology:television_program ) } }
[]
work of art television program
SYSTEM
1 works of art and 2 television programs
Q457638 Q1583172 Q207954
(c(Q838948),P161,Q287835) (c(Q15416),P161,Q287835)
action count
action union
action filter_type
action find_reverse
entity Q287835
relation P161
type Q838948
action filter_type
action find_reverse
entity Q287835
relation P161
type Q15416
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q287835'] [{'concept': 'Q15416'}, 'P161', 'Q287835']
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } }
The Pretender Less Than Perfect Pretty Woman
1 works of art and 2 television programs
action count
action union
action filter_type
action find_reverse
entity Andrea Parker
relation cast member
type work of art
action filter_type
action find_reverse
entity Andrea Parker
relation cast member
type television program
[{'concept': 'work of art'}, 'cast member', 'Andrea Parker'] [{'concept': 'television program'}, 'cast member', 'Andrea Parker']
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:work_of_art ) ( ontology:television_program ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q947873 Q805221
P106
Q502895
USER
Which people have the profession as ballet dancer and television presenter ?
AND((c(Q502895),P106,Q805221), (c(Q502895),P106,Q947873))
action filter_type
action intersection
action find_reverse
entity Q805221
relation P106
action find_reverse
entity Q947873
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q805221'], [{'concept': 'Q502895'}, 'P106', 'Q947873']]}
SELECT DISTINCT ?z WHERE { ?z property:P106 resource:Q805221 . ?z property:P106 resource:Q947873 . ?z rdf:type ontology:Q502895 }
television presenter ballet dancer
action filter_type
action intersection
action find_reverse
entity ballet dancer
relation occupation
action find_reverse
entity television presenter
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'ballet dancer'], [{'concept': 'common name'}, 'occupation', 'television presenter']]}
SELECT DISTINCT ?z WHERE { ?z property:occupation resource:ballet_dancer . ?z property:occupation resource:television_presenter . ?z rdf:type ontology:common_name }
[]
common name
Q6098030 Q1113485 Q3938518 Q1239281 Q3946523 Q85468 Q3721789 Q257865 Q22122774
SYSTEM
Ivana Sert, Alice Bellagamba, Roberta Lanfranchi, Don Lurio, Sammy Barbot, Marlene Charell, Eleonora Di Miele, Robin Antin, Sonia Humphrey
Q6098030 Q1113485 Q3938518 Q1239281 Q3946523 Q85468 Q3721789 Q257865 Q22122774
AND((c(Q502895),P106,Q805221), (c(Q502895),P106,Q947873))
action filter_type
action intersection
action find_reverse
entity Q805221
relation P106
action find_reverse
entity Q947873
relation P106
type Q502895
[ANSWERS] have the profession as ballet dancer and television presenter
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q805221'], [{'concept': 'Q502895'}, 'P106', 'Q947873']]}
SELECT DISTINCT ?z WHERE { ?z property:P106 resource:Q805221 . ?z property:P106 resource:Q947873 . ?z rdf:type ontology:Q502895 }
Ivana Sert Alice Bellagamba Roberta Lanfranchi Don Lurio Sammy Barbot Marlene Charell Eleonora Di Miele Robin Antin Sonia Humphrey
Ivana Sert, Alice Bellagamba, Roberta Lanfranchi, Don Lurio, Sammy Barbot, Marlene Charell, Eleonora Di Miele, Robin Antin and Sonia Humphrey have the profession as ballet dancer and television presenter
Ivana Sert Alice Bellagamba Roberta Lanfranchi Don Lurio Sammy Barbot Marlene Charell Eleonora Di Miele Robin Antin Sonia Humphrey
action filter_type
action intersection
action find_reverse
entity ballet dancer
relation occupation
action find_reverse
entity television presenter
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'ballet dancer'], [{'concept': 'common name'}, 'occupation', 'television presenter']]}
SELECT DISTINCT ?z WHERE { ?z property:occupation resource:ballet_dancer . ?z property:occupation resource:television_presenter . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q385288 Q6098030
P106
Q12737077
USER
Which occupations do Ivana Sert or Arnold van Gennep do for a living ?
OR((Q6098030,P106,c(Q12737077)), (Q385288,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6098030
relation P106
action find
entity Q385288
relation P106
type Q12737077
{'OR': [['Q6098030', 'P106', {'concept': 'Q12737077'}], ['Q385288', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?b WHERE { { ?u property:P106 ?b . VALUES ( ?u ) { ( resource:Q385288 ) ( resource:Q6098030 ) } } . ?b rdf:type ontology:Q12737077 }
Arnold van Gennep Ivana Sert
action filter_type
action union
action find
entity Ivana Sert
relation occupation
action find
entity Arnold van Gennep
relation occupation
type occupation
{'OR': [['Ivana Sert', 'occupation', {'concept': 'occupation'}], ['Arnold van Gennep', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?b WHERE { { ?u property:occupation ?b . VALUES ( ?u ) { ( resource:Arnold_van_Gennep ) ( resource:Ivana_Sert ) } } . ?b rdf:type ontology:occupation }
[]
occupation
Q805221 Q16533 Q43845 Q4773904 Q947873 Q1622272 Q4610556
SYSTEM
ballet dancer, judge, businessperson, anthropologist, television presenter, university teacher, model
Q805221 Q16533 Q43845 Q4773904 Q947873 Q1622272 Q4610556
OR((Q6098030,P106,c(Q12737077)), (Q385288,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6098030
relation P106
action find
entity Q385288
relation P106
type Q12737077
Ivana Sert or Arnold van Gennep do for a living as [ANSWERS]
{'OR': [['Q6098030', 'P106', {'concept': 'Q12737077'}], ['Q385288', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?b WHERE { { ?u property:P106 ?b . VALUES ( ?u ) { ( resource:Q385288 ) ( resource:Q6098030 ) } } . ?b rdf:type ontology:Q12737077 }
ballet dancer judge businessperson anthropologist television presenter university teacher model
Ivana Sert or Arnold van Gennep do for a living as ballet dancer, judge, businessperson, anthropologist, television presenter, university teacher and model
ballet dancer judge businessperson anthropologist television presenter university teacher model
action filter_type
action union
action find
entity Ivana Sert
relation occupation
action find
entity Arnold van Gennep
relation occupation
type occupation
{'OR': [['Ivana Sert', 'occupation', {'concept': 'occupation'}], ['Arnold van Gennep', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?b WHERE { { ?u property:occupation ?b . VALUES ( ?u ) { ( resource:Arnold_van_Gennep ) ( resource:Ivana_Sert ) } } . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16533
P425
Q179805
USER
Which political philosophy is associated with the field of occupation judge ?
(Q16533,P425,c(Q179805))
action filter_type
action find
entity Q16533
relation P425
type Q179805
['Q16533', 'P425', {'concept': 'Q179805'}]
SELECT DISTINCT ?s WHERE { resource:Q16533 property:P425 ?s . ?s rdf:type ontology:Q179805 }
judge
action filter_type
action find
entity judge
relation field of this occupation
type political philosophy
['judge', 'field of this occupation', {'concept': 'political philosophy'}]
SELECT DISTINCT ?s WHERE { resource:judge property:field_of_this_occupation ?s . ?s rdf:type ontology:political_philosophy }
[]
political philosophy
Q105985
SYSTEM
judiciary
Q105985
(Q16533,P425,c(Q179805))
action filter_type
action find
entity Q16533
relation P425
type Q179805
[ANSWER] is associated with the field of occupation judge
['Q16533', 'P425', {'concept': 'Q179805'}]
SELECT DISTINCT ?s WHERE { resource:Q16533 property:P425 ?s . ?s rdf:type ontology:Q179805 }
judiciary
Judiciary is associated with the field of occupation judge
judiciary
action filter_type
action find
entity judge
relation field of this occupation
type political philosophy
['judge', 'field of this occupation', {'concept': 'political philosophy'}]
SELECT DISTINCT ?s WHERE { resource:judge property:field_of_this_occupation ?s . ?s rdf:type ontology:political_philosophy }
[]