Simple Question (Direct)
Simple Question
Q1926671
P102
Q7210356
USER
Which party is Micajah Thomas Hawkins affiliated with ?
(Q1926671,P102,c(Q7210356))
action filter_type
action find
entity Q1926671
relation P102
type Q7210356
['Q1926671', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q1926671 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Micajah Thomas Hawkins
action filter_type
action find
entity Micajah Thomas Hawkins
relation member of political party
type political organization
['Micajah Thomas Hawkins', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Micajah_Thomas_Hawkins property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q1926671,P102,c(Q7210356))
action filter_type
action find
entity Q1926671
relation P102
type Q7210356
Micajah Thomas Hawkins is affiliated with [ANSWER]
['Q1926671', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q1926671 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Democratic Party
Micajah Thomas Hawkins is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity Micajah Thomas Hawkins
relation member of political party
type political organization
['Micajah Thomas Hawkins', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Micajah_Thomas_Hawkins property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1926671
P39
Q12737077
USER
Which occupations were a position held by that person ?
(Q29552,P39,c(Q12737077))
action filter_type
action find
entity Q1926671
relation P39
type Q12737077
['Q29552', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q1926671 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Micajah Thomas Hawkins
action filter_type
action find
entity Micajah Thomas Hawkins
relation position held
type occupation
['Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Micajah_Thomas_Hawkins property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q13218630 Q18089655
SYSTEM
United States representative, Member of the North Carolina House of Representatives
Q13218630 Q18089655
(Q29552,P39,c(Q12737077))
action filter_type
action find
entity Q1926671
relation P39
type Q12737077
[ANSWERS] were a position held by that person
['Q29552', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q1926671 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
United States representative Member of the North Carolina House of Representatives
United States representative and Member of the North Carolina House of Representatives were a position held by that person
United States representative Member of the North Carolina House of Representatives
action filter_type
action find
entity Micajah Thomas Hawkins
relation position held
type occupation
['Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Micajah_Thomas_Hawkins property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1926671
P735
Q82799
USER
What is the firstname of that person ?
(Q13218630,P735,c(Q82799)) (Q18089655,P735,c(Q82799))
action filter_type
action find
entity Q1926671
relation P735
type Q82799
['Q13218630', 'P735', {'concept': 'Q82799'}] ['Q18089655', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q1926671 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Micajah Thomas Hawkins
action filter_type
action find
entity Micajah Thomas Hawkins
relation given name
type name
['United States representative', 'given name', {'concept': 'name'}] ['Member of the North Carolina House of Representatives', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Micajah_Thomas_Hawkins property:given_name ?u . ?u rdf:type ontology:name }
[]
name
Q16279427
SYSTEM
Micajah
Q16279427
(Q13218630,P735,c(Q82799)) (Q18089655,P735,c(Q82799))
action filter_type
action find
entity Q1926671
relation P735
type Q82799
The firstname of that person is the [ANSWER]
['Q13218630', 'P735', {'concept': 'Q82799'}] ['Q18089655', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q1926671 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Micajah
The firstname of that person is the Micajah
Micajah
action filter_type
action find
entity Micajah Thomas Hawkins
relation given name
type name
['United States representative', 'given name', {'concept': 'name'}] ['Member of the North Carolina House of Representatives', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Micajah_Thomas_Hawkins property:given_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1926671
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Micajah Thomas Hawkins ?
(Q1926671,P27,c(Q15617994))
action filter_type
action find
entity Q1926671
relation P27
type Q15617994
['Q1926671', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1926671 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Micajah Thomas Hawkins
action filter_type
action find
entity Micajah Thomas Hawkins
relation country of citizenship
type designation for an administrative territorial entity
['Micajah Thomas Hawkins', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Micajah_Thomas_Hawkins property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1926671,P27,c(Q15617994))
action filter_type
action find
entity Q1926671
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Micajah Thomas Hawkins
['Q1926671', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1926671 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of citizenship of Micajah Thomas Hawkins
United States of America
action filter_type
action find
entity Micajah Thomas Hawkins
relation country of citizenship
type designation for an administrative territorial entity
['Micajah Thomas Hawkins', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Micajah_Thomas_Hawkins property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1926671
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q30,P106,c(Q12737077))
action filter_type
action find
entity Q1926671
relation P106
type Q12737077
['Q30', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1926671 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Micajah Thomas Hawkins
action filter_type
action find
entity Micajah Thomas Hawkins
relation occupation
type occupation
['United States of America', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Micajah_Thomas_Hawkins property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q30,P106,c(Q12737077))
action filter_type
action find
entity Q1926671
relation P106
type Q12737077
A [ANSWER] has that person as his/her 's career
['Q30', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1926671 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
politician
A politician has that person as his/her 's career
politician
action filter_type
action find
entity Micajah Thomas Hawkins
relation occupation
type occupation
['United States of America', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Micajah_Thomas_Hawkins property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q5343272 Q1926671
P106
Q12737077
USER
Or Edward Hale?
OR((Q1926671,P106,c(Q12737077)), (Q5343272,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1926671
relation P106
action find
entity Q5343272
relation P106
type Q12737077
{'OR': [['Q1926671', 'P106', {'concept': 'Q12737077'}], ['Q5343272', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?t ) { ( resource:Q1926671 ) ( resource:Q5343272 ) } . ?t property:P106 ?w } . ?w rdf:type ontology:Q12737077 }
Edward Hale Micajah Thomas Hawkins
action filter_type
action union
action find
entity Micajah Thomas Hawkins
relation occupation
action find
entity Edward Hale
relation occupation
type occupation
{'OR': [['Micajah Thomas Hawkins', 'occupation', {'concept': 'occupation'}], ['Edward Hale', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?t ) { ( resource:Micajah_Thomas_Hawkins ) ( resource:Edward_Hale ) } . ?t property:occupation ?w } . ?w rdf:type ontology:occupation }
[]
occupation
Q82955 Q12299841
SYSTEM
politician, cricketer
Q82955 Q12299841
OR((Q1926671,P106,c(Q12737077)), (Q5343272,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1926671
relation P106
action find
entity Q5343272
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q1926671', 'P106', {'concept': 'Q12737077'}], ['Q5343272', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?t ) { ( resource:Q1926671 ) ( resource:Q5343272 ) } . ?t property:P106 ?w } . ?w rdf:type ontology:Q12737077 }
politician cricketer
politician cricketer
action filter_type
action union
action find
entity Micajah Thomas Hawkins
relation occupation
action find
entity Edward Hale
relation occupation
type occupation
{'OR': [['Micajah Thomas Hawkins', 'occupation', {'concept': 'occupation'}], ['Edward Hale', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?t ) { ( resource:Micajah_Thomas_Hawkins ) ( resource:Edward_Hale ) } . ?t property:occupation ?w } . ?w rdf:type ontology:occupation }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P180
Q12737077 Q15709879 Q11060274
USER
How many occupations are depicted in more number of artwork series and prints than that occupation ?
(c(Q15709879)|c(Q11060274),P180,c(Q12737077))
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?v ) { ( ?z ) ( ?x ) } . ?v property:P180 ?y } . ?z rdf:type ontology:Q15709879 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q11060274 }
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?v ) { ( ?z ) ( ?x ) } . ?v property:depicts ?y } . ?z rdf:type ontology:artwork_series . ?y rdf:type ontology:occupation . ?x rdf:type ontology:print }
[]
occupation artwork series print
Comparative|Count over More/Less|Mult. entity type|Clarification
Q82955
SYSTEM
Did you mean politician ?
(c(Q15709879)|c(Q11060274),P180,c(Q12737077))
[ANSWER]
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?v ) { ( ?z ) ( ?x ) } . ?v property:P180 ?y } . ?z rdf:type ontology:Q15709879 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q11060274 }
Did you mean politician ?
politician
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?v ) { ( ?z ) ( ?x ) } . ?v property:depicts ?y } . ?z rdf:type ontology:artwork_series . ?y rdf:type ontology:occupation . ?x rdf:type ontology:print }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant cricketer. Could you tell me the answer for that?
(c(Q15709879)|c(Q11060274),P180,c(Q12737077))
Q12299841
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
[]
SYSTEM
16
Q2486919 Q131512 Q47064 Q483501 Q805221 Q12059906 Q622630 Q376924 Q848466 Q20489032 Q1509714 Q11063 Q838811 Q2251335 Q639669 Q39631
(c(Q15709879)|c(Q11060274),P180,c(Q12737077))
[ANSWER]
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q15709879 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q11060274 }
standard-bearer farmer military personnel artist ballet dancer herder odalisque courtesan courier salt pan worker porter astronomer peasant school teacher musician physician
16
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:artwork_series . ?y rdf:type ontology:occupation . ?x rdf:type ontology:print }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q386724 Q2342494
USER
How many occupations were the main subjects of exactly 3 works and collectables 's work ?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
value 3
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { FILTER ( ?c = 3 ) . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?c ) WHERE { { ?u property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q386724 } } GROUP BY ?k } }
action count
action equal
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 collectable
value 3
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { FILTER ( ?c = 3 ) . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?c ) WHERE { { ?u property:main_subject ?k . ?k rdf:type ontology:occupation . ?u rdf:type ontology:collectable } UNION { ?u property:main_subject ?k . ?k rdf:type ontology:occupation . ?u rdf:type ontology:work } } GROUP BY ?k } }
[]
occupation work collectable
SYSTEM
2
Q39631 Q937857
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
value 3
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { FILTER ( ?c = 3 ) . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?c ) WHERE { { ?u property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q386724 } } GROUP BY ?k } }
physician association football player
2
action count
action equal
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 collectable
value 3
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { FILTER ( ?c = 3 ) . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?c ) WHERE { { ?u property:main_subject ?k . ?k rdf:type ontology:occupation . ?u rdf:type ontology:collectable } UNION { ?u property:main_subject ?k . ?k rdf:type ontology:occupation . ?u rdf:type ontology:work } } GROUP BY ?k } }
[]