Simple Question (Direct)
Simple Question
Q20658304
P21
Q290
USER
Which sex does Frederick Spicer possess ?
(Q20658304,P21,c(Q290))
action filter_type
action find
entity Q20658304
relation P21
type Q290
['Q20658304', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q20658304 property:P21 ?h . ?h rdf:type ontology:Q290 }
Frederick Spicer
action filter_type
action find
entity Frederick Spicer
relation gender
type sex
['Frederick Spicer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Frederick_Spicer property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q20658304,P21,c(Q290))
action filter_type
action find
entity Q20658304
relation P21
type Q290
Frederick Spicer possesses a [ANSWER]
['Q20658304', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q20658304 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Frederick Spicer possesses a male
male
action filter_type
action find
entity Frederick Spicer
relation gender
type sex
['Frederick Spicer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Frederick_Spicer property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20658304
P106
Q12737077
USER
Which occupations have Frederick Spicer as his/her 's career ?
(Q20658304,P106,c(Q12737077))
action filter_type
action find
entity Q20658304
relation P106
type Q12737077
['Q20658304', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q20658304 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Frederick Spicer
action filter_type
action find
entity Frederick Spicer
relation occupation
type occupation
['Frederick Spicer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Frederick_Spicer property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q39631 Q82955
SYSTEM
physician, politician
Q39631 Q82955
(Q20658304,P106,c(Q12737077))
action filter_type
action find
entity Q20658304
relation P106
type Q12737077
The [ANSWERS] have Frederick Spicer as his/her 's career
['Q20658304', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q20658304 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
physician politician
The physician and politician have Frederick Spicer as his/her 's career
physician politician
action filter_type
action find
entity Frederick Spicer
relation occupation
type occupation
['Frederick Spicer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Frederick_Spicer property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q85247
Q12737077
USER
And how about Mona Seefried?
(Q85247,P106,c(Q12737077))
action filter_type
action find
entity Q85247
relation P106
type Q12737077
['Q85247', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q85247 property:P106 ?y }
Mona Seefried
action filter_type
action find
entity Mona Seefried
relation occupation
type occupation
['Mona Seefried', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Mona_Seefried property:occupation ?y }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q85247,P106,c(Q12737077))
action filter_type
action find
entity Q85247
relation P106
type Q12737077
[ANSWER]
['Q85247', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q85247 property:P106 ?y }
actor
actor
action filter_type
action find
entity Mona Seefried
relation occupation
type occupation
['Mona Seefried', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Mona_Seefried property:occupation ?y }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q33999 Q4216387
P106
Q502895
USER
Does Boris Karygin have that occupation as his/her means of employment ?
(Q4216387,P106,Q33999)
action is_in
entity Q33999
action find
entity Q4216387
relation P106
['Q4216387', 'P106', 'Q33999']
ASK WHERE { resource:Q4216387 property:P106 resource:Q33999 }
actor Boris Karygin
action is_in
entity actor
action find
entity Boris Karygin
relation occupation
['Boris Karygin', 'occupation', 'actor']
ASK WHERE { resource:Boris_Karygin property:occupation resource:actor }
[]
common name
SYSTEM
YES
(Q4216387,P106,Q33999)
action is_in
entity Q33999
action find
entity Q4216387
relation P106
[ANSWER]
['Q4216387', 'P106', 'Q33999']
ASK WHERE { resource:Q4216387 property:P106 resource:Q33999 }
Yes
action is_in
entity actor
action find
entity Boris Karygin
relation occupation
['Boris Karygin', 'occupation', 'actor']
ASK WHERE { resource:Boris_Karygin property:occupation resource:actor }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q774306
P921
Q12737077 Q386724 Q732577
USER
Which occupations were discussed in more number of works or publications than surgeon ?
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q774306
relation P921
type Q386724
type Q732577
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) ?v WHERE { { ?v rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q732577 . ?z property:P921 ?v } UNION { ?z property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q386724 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P921 resource:Q774306 . { { ?q rdf:type ontology:Q386724 } UNION { ?q rdf:type ontology:Q732577 } } } } . FILTER ( ?l > ?u ) }
surgeon
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity surgeon
relation main subject
type work
type publication
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) ?v WHERE { { ?v rdf:type ontology:occupation . ?z rdf:type ontology:publication . ?z property:main_subject ?v } UNION { ?z property:main_subject ?v . ?v rdf:type ontology:occupation . ?z rdf:type ontology:work } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:main_subject resource:surgeon . { { ?q rdf:type ontology:work } UNION { ?q rdf:type ontology:publication } } } } . FILTER ( ?l > ?u ) }
[]
occupation work publication
Q16746569 Q16003532 Q3809586
SYSTEM
high school student, middle school student, Wikipedian in Residence
Q3809586 Q2094335 Q9402 Q16746569 Q15320003 Q16003532
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q774306
relation P921
type Q386724
type Q732577
[ANSWERS] were discussed in more number of works or publications than surgeon
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) ?v WHERE { { ?v rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q732577 . ?z property:P921 ?v } UNION { ?z property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q386724 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P921 resource:Q774306 . { { ?q rdf:type ontology:Q386724 } UNION { ?q rdf:type ontology:Q732577 } } } } . FILTER ( ?l > ?u ) }
Wikipedian in Residence United States Attorney ninja high school student migrant worker middle school student
High school student, middle school student and Wikipedian in Residence were discussed in more number of works or publications than surgeon
high school student middle school student Wikipedian in Residence
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity surgeon
relation main subject
type work
type publication
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) ?v WHERE { { ?v rdf:type ontology:occupation . ?z rdf:type ontology:publication . ?z property:main_subject ?v } UNION { ?z property:main_subject ?v . ?v rdf:type ontology:occupation . ?z rdf:type ontology:work } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:main_subject resource:surgeon . { { ?q rdf:type ontology:work } UNION { ?q rdf:type ontology:publication } } } } . FILTER ( ?l > ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q732358
P921
Q12737077 Q386724 Q732577
USER
And how about Nomarch?
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q732358
relation P921
type Q386724
type Q732577
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?x WHERE { VALUES ( ?b ) { ( ontology:Q386724 ) ( ontology:Q732577 ) } . ?t rdf:type ?b } GROUP BY ?x } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:P921 resource:Q732358 . { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } } } } }
Nomarch
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity Nomarch
relation main subject
type work
type publication
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?x WHERE { VALUES ( ?b ) { ( ontology:work ) ( ontology:publication ) } . ?t rdf:type ?b } GROUP BY ?x } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:main_subject resource:Nomarch . { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:publication ) ( ontology:work ) } } } } }
[]
occupation work publication
Q16746569 Q16003532 Q3809586
SYSTEM
high school student, middle school student, Wikipedian in Residence
Q3809586 Q2094335 Q9402 Q16746569 Q15320003 Q16003532
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q732358
relation P921
type Q386724
type Q732577
[ANSWERS]
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?x WHERE { VALUES ( ?b ) { ( ontology:Q386724 ) ( ontology:Q732577 ) } . ?t rdf:type ?b } GROUP BY ?x } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:P921 resource:Q732358 . { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } } } } }
Wikipedian in Residence United States Attorney ninja high school student migrant worker middle school student
high school student middle school student Wikipedian in Residence
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity Nomarch
relation main subject
type work
type publication
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?x WHERE { VALUES ( ?b ) { ( ontology:work ) ( ontology:publication ) } . ?t rdf:type ?b } GROUP BY ?x } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:main_subject resource:Nomarch . { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:publication ) ( ontology:work ) } } } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1193534 Q774306
P161 P417
Q502895
USER
Which people are the patron saint of surgeon or were casted in Landru ?
OR((Q774306,P417,c(Q502895)), (Q1193534,P161,c(Q502895)))
action filter_type
action union
action find
entity Q774306
relation P417
action find
entity Q1193534
relation P161
type Q502895
{'OR': [['Q774306', 'P417', {'concept': 'Q502895'}], ['Q1193534', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q774306 property:P417 ?i } UNION { resource:Q1193534 property:P161 ?i } } . ?i rdf:type ontology:Q502895 }
Landru surgeon
action filter_type
action union
action find
entity surgeon
relation patron saint
action find
entity Landru
relation cast member
type common name
{'OR': [['surgeon', 'patron saint', {'concept': 'common name'}], ['Landru', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { { resource:surgeon property:patron_saint ?i } UNION { resource:Landru property:cast_member ?i } } . ?i rdf:type ontology:common_name }
[]
common name
Q16185216 Q8328678 Q338617 Q1906341 Q539582 Q3434681 Q234897 Q152457 Q2847185 Q3170795
SYSTEM
Some of them are Jean-Louis Maury, Alain Quercy, Pierre Vernier, Mary Marquet, Juliette Mayniel, Robert Burnier, Michèle Morgan, Saint Roch, André Badin, Jean Blancheur
Q32439 Q3309243 Q2977756 Q2958498 Q168693 Q152457 Q218690 Q2272402 Q234149 Q338617 Q3379527 Q2847185 Q3130587 Q1867601 Q1064099 Q3293403 Q3023078 Q3086543 Q57604 Q1395882 Q501362 Q3170795 Q3263083 Q531256 Q1906341 Q2523671 Q3026223 Q3082209 Q539582 Q3159891 Q8328678 Q3434681 Q2847767 Q3167553 Q16185216 Q234897
OR((Q774306,P417,c(Q502895)), (Q1193534,P161,c(Q502895)))
action filter_type
action union
action find
entity Q774306
relation P417
action find
entity Q1193534
relation P161
type Q502895
[ANSWERS] are the patron saint of surgeon or were casted in Landru
{'OR': [['Q774306', 'P417', {'concept': 'Q502895'}], ['Q1193534', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q774306 property:P417 ?i } UNION { resource:Q1193534 property:P161 ?i } } . ?i rdf:type ontology:Q502895 }
Stéphane Audran Michel Charrel Claude Mansard Charles Bayard Jean-Pierre Melville Saint Roch Raymond Queneau Serge Bento Danielle Darrieux Pierre Vernier Philippe Castelli André Badin Henri Attal Dominique Zardi Charles Denner Mario David Denise Provence Françoise Lugagne Hildegard Knef Véronique Vendell Mario David Jean Blancheur Louis Saintève Catherine Rouvel Mary Marquet Sacha Briquet Diane Lepvrier Franck Maurice Juliette Mayniel Jacques Robiolles Alain Quercy Robert Burnier André Fouché Jean-Marie Arnoux Jean-Louis Maury Michèle Morgan
Jean-Louis Maury, Alain Quercy, Pierre Vernier, Mary Marquet, Juliette Mayniel, Robert Burnier, Michèle Morgan, Saint Roch, André Badin and Jean Blancheur are the patron saint of surgeon or were casted in Landru
Jean-Louis Maury Alain Quercy Pierre Vernier Mary Marquet Juliette Mayniel Robert Burnier Michèle Morgan Saint Roch André Badin Jean Blancheur
action filter_type
action union
action find
entity surgeon
relation patron saint
action find
entity Landru
relation cast member
type common name
{'OR': [['surgeon', 'patron saint', {'concept': 'common name'}], ['Landru', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { { resource:surgeon property:patron_saint ?i } UNION { resource:Landru property:cast_member ?i } } . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q234897
P138
Q502895
USER
Which person has Michèle Morgan as its toponym ?
(c(Q502895),P138,Q234897)
action filter_type
action find_reverse
entity Q234897
relation P138
type Q502895
[{'concept': 'Q502895'}, 'P138', 'Q234897']
SELECT DISTINCT ?j WHERE { ?j property:P138 resource:Q234897 . ?j rdf:type ontology:Q502895 }
Michèle Morgan
action filter_type
action find_reverse
entity Michèle Morgan
relation named after
type common name
[{'concept': 'common name'}, 'named after', 'Michèle Morgan']
SELECT DISTINCT ?j WHERE { ?j property:named_after resource:Michèle_Morgan . ?j rdf:type ontology:common_name }
[]
common name
Q320
SYSTEM
Michelle Bachelet
Q320
(c(Q502895),P138,Q234897)
action filter_type
action find_reverse
entity Q234897
relation P138
type Q502895
In [ANSWER] has Michèle Morgan as its toponym
[{'concept': 'Q502895'}, 'P138', 'Q234897']
SELECT DISTINCT ?j WHERE { ?j property:P138 resource:Q234897 . ?j rdf:type ontology:Q502895 }
Michelle Bachelet
In Michelle Bachelet has Michèle Morgan as its toponym
Michelle Bachelet
action filter_type
action find_reverse
entity Michèle Morgan
relation named after
type common name
[{'concept': 'common name'}, 'named after', 'Michèle Morgan']
SELECT DISTINCT ?j WHERE { ?j property:named_after resource:Michèle_Morgan . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q320
P991
Q40231
USER
Which election was that person a successful candidate from ?
(c(Q40231),P991,Q320)
action filter_type
action find_reverse
entity Q320
relation P991
type Q40231
[{'concept': 'Q40231'}, 'P991', 'Q320']
SELECT DISTINCT ?r WHERE { ?r property:P991 resource:Q320 . ?r rdf:type ontology:Q40231 }
Michelle Bachelet
action filter_type
action find_reverse
entity Michelle Bachelet
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Michelle Bachelet']
SELECT DISTINCT ?r WHERE { ?r property:successful_candidate resource:Michelle_Bachelet . ?r rdf:type ontology:election }
[]
election
Q2792011
SYSTEM
Chilean presidential election, 2013
Q2792011
(c(Q40231),P991,Q320)
action filter_type
action find_reverse
entity Q320
relation P991
type Q40231
Which election was that person a successful candidate from
[{'concept': 'Q40231'}, 'P991', 'Q320']
SELECT DISTINCT ?r WHERE { ?r property:P991 resource:Q320 . ?r rdf:type ontology:Q40231 }
Chilean presidential election, 2013
Which election was that person a successful candidate from
Chilean presidential election, 2013
action filter_type
action find_reverse
entity Michelle Bachelet
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Michelle Bachelet']
SELECT DISTINCT ?r WHERE { ?r property:successful_candidate resource:Michelle_Bachelet . ?r rdf:type ontology:election }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2792011 Q11818352
P793
Q502895
USER
Is that election a key event of Piotr Świtkowski ?
(Q11818352,P793,Q2792011)
action is_in
entity Q11818352
action find
entity Q2792011
relation P793
['Q11818352', 'P793', 'Q2792011']
ASK WHERE { resource:Q2792011 property:P793 resource:Q11818352 }
Chilean presidential election, 2013 Piotr Świtkowski
action is_in
entity Piotr Świtkowski
action find
entity Chilean presidential election, 2013
relation significant event
['Piotr Świtkowski', 'significant event', 'Chilean presidential election, 2013']
ASK WHERE { resource:Chilean_presidential_election,_2013 property:significant_event resource:Piotr_Świtkowski }
[]
common name
SYSTEM
NO
(Q11818352,P793,Q2792011)
action is_in
entity Q11818352
action find
entity Q2792011
relation P793
[ANSWER]
['Q11818352', 'P793', 'Q2792011']
ASK WHERE { resource:Q2792011 property:P793 resource:Q11818352 }
No
action is_in
entity Piotr Świtkowski
action find
entity Chilean presidential election, 2013
relation significant event
['Piotr Świtkowski', 'significant event', 'Chilean presidential election, 2013']
ASK WHERE { resource:Chilean_presidential_election,_2013 property:significant_event resource:Piotr_Świtkowski }
[]