Simple Question (Direct)
Simple Question
Q24702764
P21
Q290
USER
Which sex does Haralabos Protopapas have ?
(Q24702764,P21,c(Q290))
action filter_type
action find
entity Q24702764
relation P21
type Q290
['Q24702764', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q24702764 property:P21 ?m . ?m rdf:type ontology:Q290 }
Haralabos Protopapas
action filter_type
action find
entity Haralabos Protopapas
relation gender
type sex
['Haralabos Protopapas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Haralabos_Protopapas property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q24702764,P21,c(Q290))
action filter_type
action find
entity Q24702764
relation P21
type Q290
Haralabos Protopapas has 1 [ANSWER]
['Q24702764', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q24702764 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
Haralabos Protopapas has 1 male
male
action filter_type
action find
entity Haralabos Protopapas
relation gender
type sex
['Haralabos Protopapas', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Haralabos_Protopapas property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P180
Q340169
USER
Which media expressess that sex ?
(c(Q340169),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', 'Q6581097']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q340169 . ?x property:P180 resource:Q6581097 }
male
action filter_type
action find_reverse
entity male
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'male']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:media . ?x property:depicts resource:male }
[]
media
Q20020115
SYSTEM
Portrait of a Young Man
Q20020115
(c(Q340169),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
[ANSWER] expressess that sex
[{'concept': 'Q340169'}, 'P180', 'Q6581097']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q340169 . ?x property:P180 resource:Q6581097 }
Portrait of a Young Man
Portrait of a Young Man expressess that sex
Portrait of a Young Man
action filter_type
action find_reverse
entity male
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'male']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:media . ?x property:depicts resource:male }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q20020115 Q160538 Q1178564
P170
Q502895
USER
Was that media developed by Gian Lorenzo Bernini and Antal Molnár ?
(Q20020115,P170,Q160538) (Q20020115,P170,Q1178564)
action is_in
entity Q20020115
action intersection
action find_reverse
entity Q160538
relation P170
action find_reverse
entity Q1178564
relation P170
['Q20020115', 'P170', 'Q160538'] ['Q20020115', 'P170', 'Q1178564']
ASK WHERE { resource:Q20020115 property:P170 resource:Q160538 . resource:Q20020115 property:P170 resource:Q1178564 }
Portrait of a Young Man Gian Lorenzo Bernini Antal Molnár
action is_in
entity Portrait of a Young Man
action intersection
action find_reverse
entity Gian Lorenzo Bernini
relation creator
action find_reverse
entity Antal Molnár
relation creator
['Portrait of a Young Man', 'creator', 'Gian Lorenzo Bernini'] ['Portrait of a Young Man', 'creator', 'Antal Molnár']
ASK WHERE { resource:Portrait_of_a_Young_Man property:creator resource:Gian_Lorenzo_Bernini . resource:Portrait_of_a_Young_Man property:creator resource:Antal_Molnár }
[]
common name
SYSTEM
YES and NO respectively
(Q20020115,P170,Q160538) (Q20020115,P170,Q1178564)
action is_in
entity Q20020115
action intersection
action find_reverse
entity Q160538
relation P170
action find_reverse
entity Q1178564
relation P170
[ANSWER]
['Q20020115', 'P170', 'Q160538'] ['Q20020115', 'P170', 'Q1178564']
ASK WHERE { resource:Q20020115 property:P170 resource:Q160538 . resource:Q20020115 property:P170 resource:Q1178564 }
YES and NO respectively
action is_in
entity Portrait of a Young Man
action intersection
action find_reverse
entity Gian Lorenzo Bernini
relation creator
action find_reverse
entity Antal Molnár
relation creator
['Portrait of a Young Man', 'creator', 'Gian Lorenzo Bernini'] ['Portrait of a Young Man', 'creator', 'Antal Molnár']
ASK WHERE { resource:Portrait_of_a_Young_Man property:creator resource:Gian_Lorenzo_Bernini . resource:Portrait_of_a_Young_Man property:creator resource:Antal_Molnár }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6581097 Q121916
P180
Q838948
USER
How many works of art demonstrate male or writing implement ?
(c(Q838948),P180,Q6581097) (c(Q838948),P180,Q121916)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q838948
action filter_type
action find_reverse
entity Q121916
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q6581097'] [{'concept': 'Q838948'}, 'P180', 'Q121916']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { VALUES ( ?c ) { ( resource:Q6581097 ) ( resource:Q121916 ) } . ?w property:P180 ?c }
male writing implement
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type work of art
action filter_type
action find_reverse
entity writing implement
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'male'] [{'concept': 'work of art'}, 'depicts', 'writing implement']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { VALUES ( ?c ) { ( resource:male ) ( resource:writing_implement ) } . ?w property:depicts ?c }
[]
work of art
SYSTEM
4
Q19204877 Q1760522 Q18762384 Q15731486
(c(Q838948),P180,Q6581097) (c(Q838948),P180,Q121916)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q838948
action filter_type
action find_reverse
entity Q121916
relation P180
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P180', 'Q6581097'] [{'concept': 'Q838948'}, 'P180', 'Q121916']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { VALUES ( ?c ) { ( resource:Q6581097 ) ( resource:Q121916 ) } . ?w property:P180 ?c }
D'Alembert Lansdowne portrait Poetry Voltaire Naked
4
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type work of art
action filter_type
action find_reverse
entity writing implement
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'male'] [{'concept': 'work of art'}, 'depicts', 'writing implement']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { VALUES ( ?c ) { ( resource:male ) ( resource:writing_implement ) } . ?w property:depicts ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6581097 Q613006
P138
Q79529
USER
How many chemical substances have male or Nizam of Hyderabad as their toponym ?
(c(Q79529),P138,Q6581097) (c(Q79529),P138,Q613006)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q79529
action filter_type
action find_reverse
entity Q613006
relation P138
type Q79529
[{'concept': 'Q79529'}, 'P138', 'Q6581097'] [{'concept': 'Q79529'}, 'P138', 'Q613006']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?c ) { ( resource:Q6581097 ) ( resource:Q613006 ) } . ?z property:P138 ?c }
male Nizam of Hyderabad
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type chemical substance
action filter_type
action find_reverse
entity Nizam of Hyderabad
relation named after
type chemical substance
[{'concept': 'chemical substance'}, 'named after', 'male'] [{'concept': 'chemical substance'}, 'named after', 'Nizam of Hyderabad']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?c ) { ( resource:male ) ( resource:Nizam_of_Hyderabad ) } . ?z property:named_after ?c }
[]
chemical substance
SYSTEM
2
Q7042098 Q19833612
(c(Q79529),P138,Q6581097) (c(Q79529),P138,Q613006)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q79529
action filter_type
action find_reverse
entity Q613006
relation P138
type Q79529
[ANSWER]
[{'concept': 'Q79529'}, 'P138', 'Q6581097'] [{'concept': 'Q79529'}, 'P138', 'Q613006']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?c ) { ( resource:Q6581097 ) ( resource:Q613006 ) } . ?z property:P138 ?c }
Nizam Diamond fabrièsite
2
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type chemical substance
action filter_type
action find_reverse
entity Nizam of Hyderabad
relation named after
type chemical substance
[{'concept': 'chemical substance'}, 'named after', 'male'] [{'concept': 'chemical substance'}, 'named after', 'Nizam of Hyderabad']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?c ) { ( resource:male ) ( resource:Nizam_of_Hyderabad ) } . ?z property:named_after ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q103992
P101
Q9332
USER
Which discipline does Melpomene belong to ?
(Q103992,P101,c(Q9332))
action filter_type
action find
entity Q103992
relation P101
type Q9332
['Q103992', 'P101', {'concept': 'Q9332'}]
SELECT DISTINCT ?h WHERE { resource:Q103992 property:P101 ?h . ?h rdf:type ontology:Q9332 }
Melpomene
action filter_type
action find
entity Melpomene
relation field of work
type behavior
['Melpomene', 'field of work', {'concept': 'behavior'}]
SELECT DISTINCT ?h WHERE { resource:Melpomene property:field_of_work ?h . ?h rdf:type ontology:behavior }
[]
behavior
Q27939
SYSTEM
singing
Q27939
(Q103992,P101,c(Q9332))
action filter_type
action find
entity Q103992
relation P101
type Q9332
Melpomene belongs to [ANSWER]
['Q103992', 'P101', {'concept': 'Q9332'}]
SELECT DISTINCT ?h WHERE { resource:Q103992 property:P101 ?h . ?h rdf:type ontology:Q9332 }
singing
Melpomene belongs to singing
singing
action filter_type
action find
entity Melpomene
relation field of work
type behavior
['Melpomene', 'field of work', {'concept': 'behavior'}]
SELECT DISTINCT ?h WHERE { resource:Melpomene property:field_of_work ?h . ?h rdf:type ontology:behavior }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q103992
Q15850590
USER
And which theatrical genre?
(Q103992,P101,c(Q15850590))
action filter_type
action find
entity Q103992
relation P101
type Q15850590
['Q103992', 'P101', {'concept': 'Q15850590'}]
SELECT DISTINCT ?z WHERE { resource:Q103992 property:P101 ?z . ?z rdf:type ontology:Q15850590 }
Melpomene
action filter_type
action find
entity Melpomene
relation field of work
type theatrical genre
['Melpomene', 'field of work', {'concept': 'theatrical genre'}]
SELECT DISTINCT ?z WHERE { resource:Melpomene property:field_of_work ?z . ?z rdf:type ontology:theatrical_genre }
[]
theatrical genre
Q34620
SYSTEM
Greek tragedy
Q34620
(Q103992,P101,c(Q15850590))
action filter_type
action find
entity Q103992
relation P101
type Q15850590
[ANSWER]
['Q103992', 'P101', {'concept': 'Q15850590'}]
SELECT DISTINCT ?z WHERE { resource:Q103992 property:P101 ?z . ?z rdf:type ontology:Q15850590 }
Greek tragedy
Greek tragedy
action filter_type
action find
entity Melpomene
relation field of work
type theatrical genre
['Melpomene', 'field of work', {'concept': 'theatrical genre'}]
SELECT DISTINCT ?z WHERE { resource:Melpomene property:field_of_work ?z . ?z rdf:type ontology:theatrical_genre }
[]