Simple Question (Direct)
Simple Question
Q16175809
P27
Q15617994
USER
Which administrative territory is Albert Batlle i Bastardas a civilian of ?
(Q16175809,P27,c(Q15617994))
action filter_type
action find
entity Q16175809
relation P27
type Q15617994
['Q16175809', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q16175809 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Albert Batlle i Bastardas
action filter_type
action find
entity Albert Batlle i Bastardas
relation country of citizenship
type designation for an administrative territorial entity
['Albert Batlle i Bastardas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Albert_Batlle_i_Bastardas property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q16175809,P27,c(Q15617994))
action filter_type
action find
entity Q16175809
relation P27
type Q15617994
[ANSWER] is Albert Batlle i Bastardas a civilian of
['Q16175809', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q16175809 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Spain
Spain is Albert Batlle i Bastardas a civilian of
Spain
action filter_type
action find
entity Albert Batlle i Bastardas
relation country of citizenship
type designation for an administrative territorial entity
['Albert Batlle i Bastardas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Albert_Batlle_i_Bastardas property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16175809
P102
Q7278
USER
Which political party is Albert Batlle i Bastardas a member of ?
(Q16175809,P102,c(Q7278))
action filter_type
action find
entity Q16175809
relation P102
type Q7278
['Q16175809', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q7278 . resource:Q16175809 property:P102 ?q }
Albert Batlle i Bastardas
action filter_type
action find
entity Albert Batlle i Bastardas
relation member of political party
type political party
['Albert Batlle i Bastardas', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_party . resource:Albert_Batlle_i_Bastardas property:member_of_political_party ?q }
[]
political party
Q2055003
SYSTEM
Socialists' Party of Catalonia
Q2055003
(Q16175809,P102,c(Q7278))
action filter_type
action find
entity Q16175809
relation P102
type Q7278
The [ANSWER] is Albert Batlle i Bastardas a member of
['Q16175809', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q7278 . resource:Q16175809 property:P102 ?q }
Socialists' Party of Catalonia
The Socialists' Party of Catalonia is Albert Batlle i Bastardas a member of
Socialists' Party of Catalonia
action filter_type
action find
entity Albert Batlle i Bastardas
relation member of political party
type political party
['Albert Batlle i Bastardas', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_party . resource:Albert_Batlle_i_Bastardas property:member_of_political_party ?q }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1793949
Q7278
USER
And also tell me about Kurt Partzsch?
(Q1793949,P102,c(Q7278))
action filter_type
action find
entity Q1793949
relation P102
type Q7278
['Q1793949', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?j WHERE { resource:Q1793949 property:P102 ?j . ?j rdf:type ontology:Q7278 }
Kurt Partzsch
action filter_type
action find
entity Kurt Partzsch
relation member of political party
type political party
['Kurt Partzsch', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?j WHERE { resource:Kurt_Partzsch property:member_of_political_party ?j . ?j rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q1793949,P102,c(Q7278))
action filter_type
action find
entity Q1793949
relation P102
type Q7278
[ANSWER]
['Q1793949', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?j WHERE { resource:Q1793949 property:P102 ?j . ?j rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Social Democratic Party of Germany
action filter_type
action find
entity Kurt Partzsch
relation member of political party
type political party
['Kurt Partzsch', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?j WHERE { resource:Kurt_Partzsch property:member_of_political_party ?j . ?j rdf:type ontology:political_party }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P102
Q7278 Q502895
USER
How many political parties are greater number of people a member of than that political party ?
(c(Q502895),P102,c(Q7278))
action count
action greater
action find_tuple_counts
relation P102
type Q7278
type Q502895
action count
action filter_type
action find
entity Q49768
relation P102
type Q7278
[{'concept': 'Q502895'}, 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { ?u rdf:type ontology:Q7278 . ?h rdf:type ontology:Q502895 . ?u property:P102 ?h } GROUP BY ?u } . FILTER ( ?r > ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Q49768 property:P102 ?d . ?d rdf:type ontology:Q7278 } } }
action count
action greater
action find_tuple_counts
relation member of political party
type political party
type common name
action count
action filter_type
action find
entity Social Democratic Party of Germany
relation member of political party
type political party
[{'concept': 'common name'}, 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { ?u rdf:type ontology:political_party . ?h rdf:type ontology:common_name . ?u property:member_of_political_party ?h } GROUP BY ?u } . FILTER ( ?r > ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Social_Democratic_Party_of_Germany property:member_of_political_party ?d . ?d rdf:type ontology:political_party } } }
[]
political party common name
SYSTEM
0
(c(Q502895),P102,c(Q7278))
action count
action greater
action find_tuple_counts
relation P102
type Q7278
type Q502895
action count
action filter_type
action find
entity Q49768
relation P102
type Q7278
[ANSWER]
[{'concept': 'Q502895'}, 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { ?u rdf:type ontology:Q7278 . ?h rdf:type ontology:Q502895 . ?u property:P102 ?h } GROUP BY ?u } . FILTER ( ?r > ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Q49768 property:P102 ?d . ?d rdf:type ontology:Q7278 } } }
0
action count
action greater
action find_tuple_counts
relation member of political party
type political party
type common name
action count
action filter_type
action find
entity Social Democratic Party of Germany
relation member of political party
type political party
[{'concept': 'common name'}, 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { ?u rdf:type ontology:political_party . ?h rdf:type ontology:common_name . ?u property:member_of_political_party ?h } GROUP BY ?u } . FILTER ( ?r > ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Social_Democratic_Party_of_Germany property:member_of_political_party ?d . ?d rdf:type ontology:political_party } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P137
Q43229
USER
Which organization can be described as facility operator of Spain ?
(c(Q43229),P137,Q29)
action filter_type
action find_reverse
entity Q29
relation P137
type Q43229
[{'concept': 'Q43229'}, 'P137', 'Q29']
SELECT DISTINCT ?a WHERE { ?a property:P137 resource:Q29 . ?a rdf:type ontology:Q43229 }
Spain
action filter_type
action find_reverse
entity Spain
relation operator
type organization
[{'concept': 'organization'}, 'operator', 'Spain']
SELECT DISTINCT ?a WHERE { ?a property:operator resource:Spain . ?a rdf:type ontology:organization }
[]
organization
Q54829
SYSTEM
Radiotelevisión Española
Q54829
(c(Q43229),P137,Q29)
action filter_type
action find_reverse
entity Q29
relation P137
type Q43229
[ANSWER] can be described as facility operator of Spain
[{'concept': 'Q43229'}, 'P137', 'Q29']
SELECT DISTINCT ?a WHERE { ?a property:P137 resource:Q29 . ?a rdf:type ontology:Q43229 }
Radiotelevisión Española
Radiotelevisión Española can be described as facility operator of Spain
Radiotelevisión Española
action filter_type
action find_reverse
entity Spain
relation operator
type organization
[{'concept': 'organization'}, 'operator', 'Spain']
SELECT DISTINCT ?a WHERE { ?a property:operator resource:Spain . ?a rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P740
Q43229
USER
Which organization was formed at Spain ?
(c(Q43229),P740,Q29)
action filter_type
action find_reverse
entity Q29
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q29']
SELECT DISTINCT ?u WHERE { ?u property:P740 resource:Q29 . ?u rdf:type ontology:Q43229 }
Spain
action filter_type
action find_reverse
entity Spain
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Spain']
SELECT DISTINCT ?u WHERE { ?u property:location_of_formation resource:Spain . ?u rdf:type ontology:organization }
[]
organization
Q5923682
SYSTEM
Izenpe
Q5923682
(c(Q43229),P740,Q29)
action filter_type
action find_reverse
entity Q29
relation P740
type Q43229
In [ANSWER] was formed at Spain
[{'concept': 'Q43229'}, 'P740', 'Q29']
SELECT DISTINCT ?u WHERE { ?u property:P740 resource:Q29 . ?u rdf:type ontology:Q43229 }
Izenpe
In Izenpe was formed at Spain
Izenpe
action filter_type
action find_reverse
entity Spain
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Spain']
SELECT DISTINCT ?u WHERE { ?u property:location_of_formation resource:Spain . ?u rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P840
Q838948
USER
Which works of art have their setting located at Spain ?
(c(Q838948),P840,Q29)
action filter_type
action find_reverse
entity Q29
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q29']
SELECT DISTINCT ?a WHERE { ?a property:P840 resource:Q29 . ?a rdf:type ontology:Q838948 }
Spain
action filter_type
action find_reverse
entity Spain
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Spain']
SELECT DISTINCT ?a WHERE { ?a property:narrative_location resource:Spain . ?a rdf:type ontology:work_of_art }
[]
work of art
Q183555 Q5516100 Q332330
SYSTEM
Pirates of the Caribbean: On Stranger Tides, Fast & Furious 6, For Your Eyes Only
Q332330 Q2641533 Q183555 Q5516100
(c(Q838948),P840,Q29)
action filter_type
action find_reverse
entity Q29
relation P840
type Q838948
[ANSWERS] have their setting located at Spain
[{'concept': 'Q838948'}, 'P840', 'Q29']
SELECT DISTINCT ?a WHERE { ?a property:P840 resource:Q29 . ?a rdf:type ontology:Q838948 }
For Your Eyes Only Beware of a Holy Whore Pirates of the Caribbean: On Stranger Tides Fast & Furious 6
Pirates of the Caribbean: On Stranger Tides, Fast & Furious 6 and For Your Eyes Only have their setting located at Spain
Pirates of the Caribbean: On Stranger Tides Fast & Furious 6 For Your Eyes Only
action filter_type
action find_reverse
entity Spain
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Spain']
SELECT DISTINCT ?a WHERE { ?a property:narrative_location resource:Spain . ?a rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29
P85
Q484692
USER
Which hymn is the anthem for that administrative territory ?
(Q183555,P85,c(Q484692)) (Q5516100,P85,c(Q484692)) (Q332330,P85,c(Q484692))
action filter_type
action find
entity Q29
relation P85
type Q484692
['Q183555', 'P85', {'concept': 'Q484692'}] ['Q5516100', 'P85', {'concept': 'Q484692'}] ['Q332330', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?r WHERE { resource:Q29 property:P85 ?r . ?r rdf:type ontology:Q484692 }
Spain
action filter_type
action find
entity Spain
relation anthem
type hymn
['Pirates of the Caribbean: On Stranger Tides', 'anthem', {'concept': 'hymn'}] ['Fast & Furious 6', 'anthem', {'concept': 'hymn'}] ['For Your Eyes Only', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?r WHERE { resource:Spain property:anthem ?r . ?r rdf:type ontology:hymn }
[]
hymn
Q130940
SYSTEM
Marcha Real
Q130940
(Q183555,P85,c(Q484692)) (Q5516100,P85,c(Q484692)) (Q332330,P85,c(Q484692))
action filter_type
action find
entity Q29
relation P85
type Q484692
[ANSWER] is the anthem for that administrative territory
['Q183555', 'P85', {'concept': 'Q484692'}] ['Q5516100', 'P85', {'concept': 'Q484692'}] ['Q332330', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?r WHERE { resource:Q29 property:P85 ?r . ?r rdf:type ontology:Q484692 }
Marcha Real
Marcha Real is the anthem for that administrative territory
Marcha Real
action filter_type
action find
entity Spain
relation anthem
type hymn
['Pirates of the Caribbean: On Stranger Tides', 'anthem', {'concept': 'hymn'}] ['Fast & Furious 6', 'anthem', {'concept': 'hymn'}] ['For Your Eyes Only', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?r WHERE { resource:Spain property:anthem ?r . ?r rdf:type ontology:hymn }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1142
Q1047113 Q7257 Q7278
USER
How many political parties have approximately 4 special fields or ideologies as their political ideology ?
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action count
action approx
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
value 4
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { FILTER ( ?c = 4 ) . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?c ) WHERE { { ?w property:P1142 ?h . ?w rdf:type ontology:Q7278 . ?h rdf:type ontology:Q1047113 } UNION { ?w property:P1142 ?h . ?w rdf:type ontology:Q7278 . ?h rdf:type ontology:Q7257 } } GROUP BY ?w } }
action count
action approx
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
value 4
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { FILTER ( ?c = 4 ) . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?c ) WHERE { { ?w property:political_ideology ?h . ?w rdf:type ontology:political_party . ?h rdf:type ontology:special_field } UNION { ?w property:political_ideology ?h . ?w rdf:type ontology:political_party . ?h rdf:type ontology:ideology } } GROUP BY ?w } }
[]
special field ideology political party
SYSTEM
2
Q653566 Q130761
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action count
action approx
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
value 4
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { FILTER ( ?c = 4 ) . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?c ) WHERE { { ?w property:P1142 ?h . ?w rdf:type ontology:Q7278 . ?h rdf:type ontology:Q1047113 } UNION { ?w property:P1142 ?h . ?w rdf:type ontology:Q7278 . ?h rdf:type ontology:Q7257 } } GROUP BY ?w } }
European National Front Popular Unity Candidates
2
action count
action approx
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
value 4
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { FILTER ( ?c = 4 ) . { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?c ) WHERE { { ?w property:political_ideology ?h . ?w rdf:type ontology:political_party . ?h rdf:type ontology:special_field } UNION { ?w property:political_ideology ?h . ?w rdf:type ontology:political_party . ?h rdf:type ontology:ideology } } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2856087 Q5923682
P159
Q56061
USER
Which administrative territories are the HQ of Izenpe or BFL CANADA ?
OR((Q5923682,P159,c(Q56061)), (Q2856087,P159,c(Q56061)))
action filter_type
action union
action find
entity Q5923682
relation P159
action find
entity Q2856087
relation P159
type Q56061
{'OR': [['Q5923682', 'P159', {'concept': 'Q56061'}], ['Q2856087', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . { ?l property:P159 ?o . VALUES ( ?l ) { ( resource:Q5923682 ) ( resource:Q2856087 ) } } }
BFL CANADA Izenpe
action filter_type
action union
action find
entity Izenpe
relation headquarters location
action find
entity BFL CANADA
relation headquarters location
type administrative territorial entity
{'OR': [['Izenpe', 'headquarters location', {'concept': 'administrative territorial entity'}], ['BFL CANADA', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . { ?l property:headquarters_location ?o . VALUES ( ?l ) { ( resource:Izenpe ) ( resource:BFL_CANADA ) } } }
[]
administrative territorial entity
Q340 Q14318
SYSTEM
Montreal, Vitoria-Gasteiz
Q340 Q14318
OR((Q5923682,P159,c(Q56061)), (Q2856087,P159,c(Q56061)))
action filter_type
action union
action find
entity Q5923682
relation P159
action find
entity Q2856087
relation P159
type Q56061
[ANSWERS] are the HQ of Izenpe or BFL CANADA
{'OR': [['Q5923682', 'P159', {'concept': 'Q56061'}], ['Q2856087', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . { ?l property:P159 ?o . VALUES ( ?l ) { ( resource:Q5923682 ) ( resource:Q2856087 ) } } }
Montreal Vitoria-Gasteiz
Montreal and Vitoria-Gasteiz are the HQ of Izenpe or BFL CANADA
Montreal Vitoria-Gasteiz
action filter_type
action union
action find
entity Izenpe
relation headquarters location
action find
entity BFL CANADA
relation headquarters location
type administrative territorial entity
{'OR': [['Izenpe', 'headquarters location', {'concept': 'administrative territorial entity'}], ['BFL CANADA', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . { ?l property:headquarters_location ?o . VALUES ( ?l ) { ( resource:Izenpe ) ( resource:BFL_CANADA ) } } }
[]