Simple Question (Direct)
Simple Question
Q880595
P102
Q7210356
USER
Which party does Robert Waterman belong to ?
(Q880595,P102,c(Q7210356))
action filter_type
action find
entity Q880595
relation P102
type Q7210356
['Q880595', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q880595 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Robert Waterman
action filter_type
action find
entity Robert Waterman
relation member of political party
type political organization
['Robert Waterman', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Robert_Waterman property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q880595,P102,c(Q7210356))
action filter_type
action find
entity Q880595
relation P102
type Q7210356
Robert Waterman belongs to [ANSWER]
['Q880595', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q880595 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Republican Party
Robert Waterman belongs to Republican Party
Republican Party
action filter_type
action find
entity Robert Waterman
relation member of political party
type political organization
['Robert Waterman', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Robert_Waterman property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q880595
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q29468,P39,c(Q12737077))
action filter_type
action find
entity Q880595
relation P39
type Q12737077
['Q29468', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q880595 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Robert Waterman
action filter_type
action find
entity Robert Waterman
relation position held
type occupation
['Republican Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Robert_Waterman property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q887010
SYSTEM
Governor of California
Q887010
(Q29468,P39,c(Q12737077))
action filter_type
action find
entity Q880595
relation P39
type Q12737077
[ANSWER]
['Q29468', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q880595 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Governor of California
Governor of California
Governor of California
action filter_type
action find
entity Robert Waterman
relation position held
type occupation
['Republican Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Robert_Waterman property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q887010 Q30
P17
Q15617994
USER
Is Governor of California a part of United States of America ?
(Q887010,P17,Q30)
action is_in
entity Q30
action find
entity Q887010
relation P17
['Q887010', 'P17', 'Q30']
ASK WHERE { resource:Q887010 property:P17 resource:Q30 }
Governor of California United States of America
action is_in
entity United States of America
action find
entity Governor of California
relation country
['Governor of California', 'country', 'United States of America']
ASK WHERE { resource:Governor_of_California property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q887010,P17,Q30)
action is_in
entity Q30
action find
entity Q887010
relation P17
[ANSWER]
['Q887010', 'P17', 'Q30']
ASK WHERE { resource:Q887010 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Governor of California
relation country
['Governor of California', 'country', 'United States of America']
ASK WHERE { resource:Governor_of_California property:country resource:United_States_of_America }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q3516658 Q340169
USER
Which occupations are demonstrated in max number of heraldic symbols and medias ?
(c(Q3516658)|c(Q340169),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
[[{'concept': 'Q3516658'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) ?d WHERE { { ?m property:P180 ?d . ?d rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q3516658 } UNION { ?m property:P180 ?d . ?d rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q340169 } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?j WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:Q3516658 ) ( ontology:Q340169 ) } } GROUP BY ?j } . FILTER ( ?p = ?n ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type media
[[{'concept': 'heraldic symbol'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) ?d WHERE { { ?m property:depicts ?d . ?d rdf:type ontology:occupation . ?m rdf:type ontology:heraldic_symbol } UNION { ?m property:depicts ?d . ?d rdf:type ontology:occupation . ?m rdf:type ontology:media } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?j WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:heraldic_symbol ) ( ontology:media ) } } GROUP BY ?j } . FILTER ( ?p = ?n ) }
[]
occupation heraldic symbol media
Q20489032
SYSTEM
salt pan worker
Q20489032
(c(Q3516658)|c(Q340169),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
[ANSWER] is demonstrated in max number of heraldic symbols and medias
[[{'concept': 'Q3516658'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) ?d WHERE { { ?m property:P180 ?d . ?d rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q3516658 } UNION { ?m property:P180 ?d . ?d rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q340169 } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?j WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:Q3516658 ) ( ontology:Q340169 ) } } GROUP BY ?j } . FILTER ( ?p = ?n ) }
salt pan worker
Salt pan worker is demonstrated in max number of heraldic symbols and medias
salt pan worker
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type media
[[{'concept': 'heraldic symbol'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) ?d WHERE { { ?m property:depicts ?d . ?d rdf:type ontology:occupation . ?m rdf:type ontology:heraldic_symbol } UNION { ?m property:depicts ?d . ?d rdf:type ontology:occupation . ?m rdf:type ontology:media } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?j WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:heraldic_symbol ) ( ontology:media ) } } GROUP BY ?j } . FILTER ( ?p = ?n ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the patron saint of approximately 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:P417 ?t . ?t rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?t } . FILTER ( ?z = 1 ) }
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:patron_saint ?t . ?t rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?t } . FILTER ( ?z = 1 ) }
[]
common name occupation
SYSTEM
38
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:P417 ?t . ?t rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?t } . FILTER ( ?z = 1 ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
38
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:patron_saint ?t . ?t rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?t } . FILTER ( ?z = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6455280 Q880595
P27
Q15617994
USER
Which administrative territories are Robert Waterman or Kōsei Hirota a civilian of ?
OR((Q880595,P27,c(Q15617994)), (Q6455280,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q880595
relation P27
action find
entity Q6455280
relation P27
type Q15617994
{'OR': [['Q880595', 'P27', {'concept': 'Q15617994'}], ['Q6455280', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?i ) { ( resource:Q6455280 ) ( resource:Q880595 ) } . ?i property:P27 ?g } . ?g rdf:type ontology:Q15617994 }
Kōsei Hirota Robert Waterman
action filter_type
action union
action find
entity Robert Waterman
relation country of citizenship
action find
entity Kōsei Hirota
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Robert Waterman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kōsei Hirota', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?i ) { ( resource:Kōsei_Hirota ) ( resource:Robert_Waterman ) } . ?i property:country_of_citizenship ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q30
SYSTEM
Japan, United States of America
Q17 Q30
OR((Q880595,P27,c(Q15617994)), (Q6455280,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q880595
relation P27
action find
entity Q6455280
relation P27
type Q15617994
[ANSWERS] are Robert Waterman or Kōsei Hirota a civilian of
{'OR': [['Q880595', 'P27', {'concept': 'Q15617994'}], ['Q6455280', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?i ) { ( resource:Q6455280 ) ( resource:Q880595 ) } . ?i property:P27 ?g } . ?g rdf:type ontology:Q15617994 }
Japan United States of America
Japan and United States of America are Robert Waterman or Kōsei Hirota a civilian of
Japan United States of America
action filter_type
action union
action find
entity Robert Waterman
relation country of citizenship
action find
entity Kōsei Hirota
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Robert Waterman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kōsei Hirota', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?i ) { ( resource:Kōsei_Hirota ) ( resource:Robert_Waterman ) } . ?i property:country_of_citizenship ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q25216438
P495
Q838948
USER
Are those administrative territories a country of origin of The Turn of the Century ?
(Q25216438,P495,Q17) (Q25216438,P495,Q30)
action is_in
entity prev_answer
action find
entity Q25216438
relation P495
['Q25216438', 'P495', 'Q17'] ['Q25216438', 'P495', 'Q30']
ASK WHERE { VALUES ( ?j ) { ( resource:Q17 ) ( resource:Q30 ) } . resource:Q25216438 property:P495 ?j }
The Turn of the Century
action is_in
entity prev_answer
action find
entity The Turn of the Century
relation country of origin
['The Turn of the Century', 'country of origin', 'Japan'] ['The Turn of the Century', 'country of origin', 'United States of America']
ASK WHERE { VALUES ( ?j ) { ( resource:Japan ) ( resource:United_States_of_America ) } . resource:The_Turn_of_the_Century property:country_of_origin ?j }
[]
work of art
SYSTEM
NO
(Q25216438,P495,Q17) (Q25216438,P495,Q30)
action is_in
entity prev_answer
action find
entity Q25216438
relation P495
[ANSWER]
['Q25216438', 'P495', 'Q17'] ['Q25216438', 'P495', 'Q30']
ASK WHERE { VALUES ( ?j ) { ( resource:Q17 ) ( resource:Q30 ) } . resource:Q25216438 property:P495 ?j }
No
action is_in
entity prev_answer
action find
entity The Turn of the Century
relation country of origin
['The Turn of the Century', 'country of origin', 'Japan'] ['The Turn of the Century', 'country of origin', 'United States of America']
ASK WHERE { VALUES ( ?j ) { ( resource:Japan ) ( resource:United_States_of_America ) } . resource:The_Turn_of_the_Century property:country_of_origin ?j }
[]