Simple Question (Direct)
Simple Question
Q4776440
P1412
Q34770
USER
Which language does Antonio Barroso y Sánchez-Guerra speak in ?
(Q4776440,P1412,c(Q34770))
action filter_type
action find
entity Q4776440
relation P1412
type Q34770
['Q4776440', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q4776440 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Antonio Barroso y Sánchez-Guerra
action filter_type
action find
entity Antonio Barroso y Sánchez-Guerra
relation languages spoken, written or signed
type language
['Antonio Barroso y Sánchez-Guerra', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Antonio_Barroso_y_Sánchez-Guerra property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q4776440,P1412,c(Q34770))
action filter_type
action find
entity Q4776440
relation P1412
type Q34770
Antonio Barroso y Sánchez-Guerra speaks in [ANSWER]
['Q4776440', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q4776440 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Spanish
Antonio Barroso y Sánchez-Guerra speaks in Spanish
Spanish
action filter_type
action find
entity Antonio Barroso y Sánchez-Guerra
relation languages spoken, written or signed
type language
['Antonio Barroso y Sánchez-Guerra', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Antonio_Barroso_y_Sánchez-Guerra property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4776440
P39
Q12737077
USER
Which occupation was a position occupied by that person ?
(Q1321,P39,c(Q12737077))
action filter_type
action find
entity Q4776440
relation P39
type Q12737077
['Q1321', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q4776440 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Antonio Barroso y Sánchez-Guerra
action filter_type
action find
entity Antonio Barroso y Sánchez-Guerra
relation position held
type occupation
['Spanish', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Antonio_Barroso_y_Sánchez-Guerra property:position_held ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q18171345
SYSTEM
Member of the Congress of Deputies of Spain
Q18171345
(Q1321,P39,c(Q12737077))
action filter_type
action find
entity Q4776440
relation P39
type Q12737077
[ANSWER] was a position occupied by that person
['Q1321', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q4776440 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Member of the Congress of Deputies of Spain
Member of the Congress of Deputies of Spain was a position occupied by that person
Member of the Congress of Deputies of Spain
action filter_type
action find
entity Antonio Barroso y Sánchez-Guerra
relation position held
type occupation
['Spanish', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Antonio_Barroso_y_Sánchez-Guerra property:position_held ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4776440
P607
Q198
USER
Which war did that person take part in ?
(Q18171345,P607,c(Q198))
action filter_type
action find
entity Q4776440
relation P607
type Q198
['Q18171345', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?q WHERE { resource:Q4776440 property:P607 ?q . ?q rdf:type ontology:Q198 }
Antonio Barroso y Sánchez-Guerra
action filter_type
action find
entity Antonio Barroso y Sánchez-Guerra
relation conflict
type war
['Member of the Congress of Deputies of Spain', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?q WHERE { resource:Antonio_Barroso_y_Sánchez-Guerra property:conflict ?q . ?q rdf:type ontology:war }
[]
war
Q10859
SYSTEM
Spanish Civil War
Q10859
(Q18171345,P607,c(Q198))
action filter_type
action find
entity Q4776440
relation P607
type Q198
Part that person took the [ANSWER]
['Q18171345', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?q WHERE { resource:Q4776440 property:P607 ?q . ?q rdf:type ontology:Q198 }
Spanish Civil War
Part that person took the Spanish Civil War
Spanish Civil War
action filter_type
action find
entity Antonio Barroso y Sánchez-Guerra
relation conflict
type war
['Member of the Congress of Deputies of Spain', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?q WHERE { resource:Antonio_Barroso_y_Sánchez-Guerra property:conflict ?q . ?q rdf:type ontology:war }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q191808
P180
Q12737077 Q18783400 Q17638008
USER
How many occupations are depicted in more number of genres of sculpture or game equipment than nun ?
(c(Q18783400)|c(Q17638008),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q191808
relation P180
type Q18783400
type Q17638008
[[{'concept': 'Q18783400'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?x ) WHERE { { ?c property:P180 ?o . ?c rdf:type ontology:Q18783400 . ?o rdf:type ontology:Q12737077 } UNION { ?c property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q17638008 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:P180 resource:Q191808 . { VALUES ( ?a ) { ( ontology:Q18783400 ) ( ontology:Q17638008 ) } . ?y rdf:type ?a } } } . FILTER ( ?x > ?u ) }
nun
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity nun
relation depicts
type genre of sculpture
type game equipment
[[{'concept': 'genre of sculpture'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?x ) WHERE { { ?c property:depicts ?o . ?c rdf:type ontology:genre_of_sculpture . ?o rdf:type ontology:occupation } UNION { ?c property:depicts ?o . ?o rdf:type ontology:occupation . ?c rdf:type ontology:game_equipment } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:depicts resource:nun . { VALUES ( ?a ) { ( ontology:genre_of_sculpture ) ( ontology:game_equipment ) } . ?y rdf:type ?a } } } . FILTER ( ?x > ?u ) }
[]
occupation genre of sculpture game equipment
SYSTEM
3
Q131512 Q12097 Q4991371
(c(Q18783400)|c(Q17638008),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q191808
relation P180
type Q18783400
type Q17638008
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?x ) WHERE { { ?c property:P180 ?o . ?c rdf:type ontology:Q18783400 . ?o rdf:type ontology:Q12737077 } UNION { ?c property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q17638008 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:P180 resource:Q191808 . { VALUES ( ?a ) { ( ontology:Q18783400 ) ( ontology:Q17638008 ) } . ?y rdf:type ?a } } } . FILTER ( ?x > ?u ) }
farmer king soldier
3
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity nun
relation depicts
type genre of sculpture
type game equipment
[[{'concept': 'genre of sculpture'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?x ) WHERE { { ?c property:depicts ?o . ?c rdf:type ontology:genre_of_sculpture . ?o rdf:type ontology:occupation } UNION { ?c property:depicts ?o . ?o rdf:type ontology:occupation . ?c rdf:type ontology:game_equipment } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:depicts resource:nun . { VALUES ( ?a ) { ( ontology:genre_of_sculpture ) ( ontology:game_equipment ) } . ?y rdf:type ?a } } } . FILTER ( ?x > ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2191547
P180
Q12737077 Q18783400 Q17638008
USER
And how about picador?
(c(Q18783400)|c(Q17638008),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q2191547
relation P180
type Q18783400
type Q17638008
[[{'concept': 'Q18783400'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?i . VALUES ( ?i ) { ( ontology:Q18783400 ) ( ontology:Q17638008 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:P180 resource:Q2191547 . { { ?j rdf:type ontology:Q18783400 } UNION { ?j rdf:type ontology:Q17638008 } } } } . FILTER ( ?y > ?e ) }
picador
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity picador
relation depicts
type genre of sculpture
type game equipment
[[{'concept': 'genre of sculpture'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?i . VALUES ( ?i ) { ( ontology:genre_of_sculpture ) ( ontology:game_equipment ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:depicts resource:picador . { { ?j rdf:type ontology:genre_of_sculpture } UNION { ?j rdf:type ontology:game_equipment } } } } . FILTER ( ?y > ?e ) }
[]
occupation genre of sculpture game equipment
SYSTEM
3
Q131512 Q12097 Q4991371
(c(Q18783400)|c(Q17638008),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q2191547
relation P180
type Q18783400
type Q17638008
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?i . VALUES ( ?i ) { ( ontology:Q18783400 ) ( ontology:Q17638008 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:P180 resource:Q2191547 . { { ?j rdf:type ontology:Q18783400 } UNION { ?j rdf:type ontology:Q17638008 } } } } . FILTER ( ?y > ?e ) }
farmer king soldier
3
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity picador
relation depicts
type genre of sculpture
type game equipment
[[{'concept': 'genre of sculpture'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?i . VALUES ( ?i ) { ( ontology:genre_of_sculpture ) ( ontology:game_equipment ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:depicts resource:picador . { { ?j rdf:type ontology:genre_of_sculpture } UNION { ?j rdf:type ontology:game_equipment } } } } . FILTER ( ?y > ?e ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18171345
P361
Q11204
USER
What is Member of the Congress of Deputies of Spain a component of ?
(Q18171345,P361,c(Q11204))
action filter_type
action find
entity Q18171345
relation P361
type Q11204
['Q18171345', 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ?n WHERE { resource:Q18171345 property:P361 ?n . ?n rdf:type ontology:Q11204 }
Member of the Congress of Deputies of Spain
action filter_type
action find
entity Member of the Congress of Deputies of Spain
relation part of
type legislature
['Member of the Congress of Deputies of Spain', 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ?n WHERE { resource:Member_of_the_Congress_of_Deputies_of_Spain property:part_of ?n . ?n rdf:type ontology:legislature }
[]
legislature
Q539149
SYSTEM
Congress of Deputies
Q539149
(Q18171345,P361,c(Q11204))
action filter_type
action find
entity Q18171345
relation P361
type Q11204
Member of the [ANSWER] of Spain a component of is the [ANSWER]
['Q18171345', 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ?n WHERE { resource:Q18171345 property:P361 ?n . ?n rdf:type ontology:Q11204 }
Congress of Deputies
Member of the Congress of Deputies of Spain a component of is the Congress of Deputies
Congress of Deputies
action filter_type
action find
entity Member of the Congress of Deputies of Spain
relation part of
type legislature
['Member of the Congress of Deputies of Spain', 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ?n WHERE { resource:Member_of_the_Congress_of_Deputies_of_Spain property:part_of ?n . ?n rdf:type ontology:legislature }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q539149 Q29 Q428981
P17
Q15617994
USER
Is Congress of Deputies located in Spain and Langballig ?
(Q539149,P17,Q29) (Q539149,P17,Q428981)
action is_in
entity Q539149
action intersection
action find_reverse
entity Q29
relation P17
action find_reverse
entity Q428981
relation P17
['Q539149', 'P17', 'Q29'] ['Q539149', 'P17', 'Q428981']
ASK WHERE { resource:Q539149 property:P17 resource:Q428981 . resource:Q539149 property:P17 resource:Q29 }
Congress of Deputies Spain Langballig
action is_in
entity Congress of Deputies
action intersection
action find_reverse
entity Spain
relation country
action find_reverse
entity Langballig
relation country
['Congress of Deputies', 'country', 'Spain'] ['Congress of Deputies', 'country', 'Langballig']
ASK WHERE { resource:Congress_of_Deputies property:country resource:Langballig . resource:Congress_of_Deputies property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q539149,P17,Q29) (Q539149,P17,Q428981)
action is_in
entity Q539149
action intersection
action find_reverse
entity Q29
relation P17
action find_reverse
entity Q428981
relation P17
[ANSWER]
['Q539149', 'P17', 'Q29'] ['Q539149', 'P17', 'Q428981']
ASK WHERE { resource:Q539149 property:P17 resource:Q428981 . resource:Q539149 property:P17 resource:Q29 }
YES and NO respectively
action is_in
entity Congress of Deputies
action intersection
action find_reverse
entity Spain
relation country
action find_reverse
entity Langballig
relation country
['Congress of Deputies', 'country', 'Spain'] ['Congress of Deputies', 'country', 'Langballig']
ASK WHERE { resource:Congress_of_Deputies property:country resource:Langballig . resource:Congress_of_Deputies property:country resource:Spain }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q539149
P1001
Q15617994
USER
Which administrative territory comes under the jurisdiction of Congress of Deputies ?
(Q539149,P1001,c(Q15617994))
action filter_type
action find
entity Q539149
relation P1001
type Q15617994
['Q539149', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q539149 property:P1001 ?p . ?p rdf:type ontology:Q15617994 }
Congress of Deputies
action filter_type
action find
entity Congress of Deputies
relation applies to jurisdiction
type designation for an administrative territorial entity
['Congress of Deputies', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Congress_of_Deputies property:applies_to_jurisdiction ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q539149,P1001,c(Q15617994))
action filter_type
action find
entity Q539149
relation P1001
type Q15617994
[ANSWER] comes under the jurisdiction of Congress of Deputies
['Q539149', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q539149 property:P1001 ?p . ?p rdf:type ontology:Q15617994 }
Spain
Spain comes under the jurisdiction of Congress of Deputies
Spain
action filter_type
action find
entity Congress of Deputies
relation applies to jurisdiction
type designation for an administrative territorial entity
['Congress of Deputies', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Congress_of_Deputies property:applies_to_jurisdiction ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4776440
P106
Q12737077
USER
Which occupations have Antonio Barroso y Sánchez-Guerra as his/her 's career ?
(Q4776440,P106,c(Q12737077))
action filter_type
action find
entity Q4776440
relation P106
type Q12737077
['Q4776440', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q4776440 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Antonio Barroso y Sánchez-Guerra
action filter_type
action find
entity Antonio Barroso y Sánchez-Guerra
relation occupation
type occupation
['Antonio Barroso y Sánchez-Guerra', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Antonio_Barroso_y_Sánchez-Guerra property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q82955 Q47064
SYSTEM
politician, military personnel
Q82955 Q47064
(Q4776440,P106,c(Q12737077))
action filter_type
action find
entity Q4776440
relation P106
type Q12737077
[ANSWERS] have Antonio Barroso y Sánchez-Guerra as his/her 's career
['Q4776440', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q4776440 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
politician military personnel
Politician and military personnel have Antonio Barroso y Sánchez-Guerra as his/her 's career
politician military personnel
action filter_type
action find
entity Antonio Barroso y Sánchez-Guerra
relation occupation
type occupation
['Antonio Barroso y Sánchez-Guerra', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Antonio_Barroso_y_Sánchez-Guerra property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5539804
Q12737077
USER
And also tell me about George Gordon-Lennox?
(Q5539804,P106,c(Q12737077))
action filter_type
action find
entity Q5539804
relation P106
type Q12737077
['Q5539804', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q5539804 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
George Gordon-Lennox
action filter_type
action find
entity George Gordon-Lennox
relation occupation
type occupation
['George Gordon-Lennox', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:George_Gordon-Lennox property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q47064
SYSTEM
military personnel
Q47064
(Q5539804,P106,c(Q12737077))
action filter_type
action find
entity Q5539804
relation P106
type Q12737077
[ANSWER]
['Q5539804', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q5539804 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
military personnel
military personnel
action filter_type
action find
entity George Gordon-Lennox
relation occupation
type occupation
['George Gordon-Lennox', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:George_Gordon-Lennox property:occupation ?k . ?k rdf:type ontology:occupation }
[]