Simple Question (Direct)
Simple Question
Q5577926
P734
Q82799
USER
Which name is associated with Lars Björkman ?
(Q5577926,P734,c(Q82799))
action filter_type
action find
entity Q5577926
relation P734
type Q82799
['Q5577926', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q5577926 property:P734 ?a . ?a rdf:type ontology:Q82799 }
Lars Björkman
action filter_type
action find
entity Lars Björkman
relation family name
type name
['Lars Björkman', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Lars_Björkman property:family_name ?a . ?a rdf:type ontology:name }
[]
name
Q21449532
SYSTEM
Björkman
Q21449532
(Q5577926,P734,c(Q82799))
action filter_type
action find
entity Q5577926
relation P734
type Q82799
Å [ANSWER] is associated with Lars [ANSWER]
['Q5577926', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q5577926 property:P734 ?a . ?a rdf:type ontology:Q82799 }
Björkman
Å Björkman is associated with Lars Björkman
Björkman
action filter_type
action find
entity Lars Björkman
relation family name
type name
['Lars Björkman', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Lars_Björkman property:family_name ?a . ?a rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5577926
P102
Q7210356
USER
Which party is Lars Björkman affiliated with ?
(Q5577926,P102,c(Q7210356))
action filter_type
action find
entity Q5577926
relation P102
type Q7210356
['Q5577926', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q5577926 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Lars Björkman
action filter_type
action find
entity Lars Björkman
relation member of political party
type political organization
['Lars Björkman', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Lars_Björkman property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
political organization
Q110843
SYSTEM
Moderate Party
Q110843
(Q5577926,P102,c(Q7210356))
action filter_type
action find
entity Q5577926
relation P102
type Q7210356
Lars Björkman is affiliated with [ANSWER]
['Q5577926', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q5577926 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Moderate Party
Lars Björkman is affiliated with Moderate Party
Moderate Party
action filter_type
action find
entity Lars Björkman
relation member of political party
type political organization
['Lars Björkman', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Lars_Björkman property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q110843 Q18093850 Q23007945
P488
Q502895
USER
Does John Henry Bridges and Kim Un-ju serve as a chairman for Q110843 ?
(Q110843,P488,Q18093850) (Q110843,P488,Q23007945)
action is_in
entity Q110843
action intersection
action find_reverse
entity Q18093850
relation P488
action find_reverse
entity Q23007945
relation P488
['Q110843', 'P488', 'Q18093850'] ['Q110843', 'P488', 'Q23007945']
ASK WHERE { resource:Q110843 property:P488 resource:Q18093850 . resource:Q110843 property:P488 resource:Q23007945 }
Moderate Party John Henry Bridges Kim Un-ju
action is_in
entity Moderate Party
action intersection
action find_reverse
entity John Henry Bridges
relation chairperson
action find_reverse
entity Kim Un-ju
relation chairperson
['Moderate Party', 'chairperson', 'John Henry Bridges'] ['Moderate Party', 'chairperson', 'Kim Un-ju']
ASK WHERE { resource:Moderate_Party property:chairperson resource:John_Henry_Bridges . resource:Moderate_Party property:chairperson resource:Kim_Un-ju }
[]
common name
SYSTEM
NO
(Q110843,P488,Q18093850) (Q110843,P488,Q23007945)
action is_in
entity Q110843
action intersection
action find_reverse
entity Q18093850
relation P488
action find_reverse
entity Q23007945
relation P488
[ANSWER]
['Q110843', 'P488', 'Q18093850'] ['Q110843', 'P488', 'Q23007945']
ASK WHERE { resource:Q110843 property:P488 resource:Q18093850 . resource:Q110843 property:P488 resource:Q23007945 }
No
action is_in
entity Moderate Party
action intersection
action find_reverse
entity John Henry Bridges
relation chairperson
action find_reverse
entity Kim Un-ju
relation chairperson
['Moderate Party', 'chairperson', 'John Henry Bridges'] ['Moderate Party', 'chairperson', 'Kim Un-ju']
ASK WHERE { resource:Moderate_Party property:chairperson resource:John_Henry_Bridges . resource:Moderate_Party property:chairperson resource:Kim_Un-ju }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q110843
P463
Q7278
USER
Which political party was that political organization a member of ?
action filter_type
action find
entity Q110843
relation P463
type Q7278
SELECT DISTINCT ?n WHERE { resource:Q110843 property:P463 ?n . ?n rdf:type ontology:Q7278 }
Moderate Party
action filter_type
action find
entity Moderate Party
relation member of
type political party
SELECT DISTINCT ?n WHERE { resource:Moderate_Party property:member_of ?n . ?n rdf:type ontology:political_party }
[]
political party
Q208242
SYSTEM
European People's Party
Q208242
action filter_type
action find
entity Q110843
relation P463
type Q7278
[ANSWER] was that political organization a member of
SELECT DISTINCT ?n WHERE { resource:Q110843 property:P463 ?n . ?n rdf:type ontology:Q7278 }
European People's Party
European People's Party was that political organization a member of
European People's Party
action filter_type
action find
entity Moderate Party
relation member of
type political party
SELECT DISTINCT ?n WHERE { resource:Moderate_Party property:member_of ?n . ?n rdf:type ontology:political_party }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P1142
Q1047113 Q7278
USER
How many political parties have the ideology as greater number of special fields than that political party ?
(c(Q7278),P1142,c(Q1047113))
action count
action greater
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action count
action filter_type
action find
entity Q208242
relation P1142
type Q7278
[{'concept': 'Q7278'}, 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?w ) WHERE { ?u property:P1142 ?t . ?u rdf:type ontology:Q7278 . ?t rdf:type ontology:Q1047113 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q208242 property:P1142 ?s . ?s rdf:type ontology:Q7278 } } . FILTER ( ?w > ?x ) }
action count
action greater
action find_tuple_counts
relation political ideology
type political party
type special field
action count
action filter_type
action find
entity European People's Party
relation political ideology
type political party
[{'concept': 'political party'}, 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?w ) WHERE { ?u property:political_ideology ?t . ?u rdf:type ontology:political_party . ?t rdf:type ontology:special_field } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:European_People's_Party property:political_ideology ?s . ?s rdf:type ontology:political_party } } . FILTER ( ?w > ?x ) }
[]
special field political party
SYSTEM
34
Q3395191 Q196695 Q950179 Q781486 Q3499324 Q438783 Q25079 Q2031569 Q1104327 Q49758 Q49762 Q1987660 Q1628993 Q3327144 Q713302 Q1437906 Q49766 Q25713876 Q2838243 Q9056254 Q1153753 Q613786 Q1577483 Q662502 Q659739 Q3320917 Q9669 Q4345980 Q1393123 Q208242 Q18761823 Q3366598 Q49755 Q5604424
(c(Q7278),P1142,c(Q1047113))
action count
action greater
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action count
action filter_type
action find
entity Q208242
relation P1142
type Q7278
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?w ) WHERE { ?u property:P1142 ?t . ?u rdf:type ontology:Q7278 . ?t rdf:type ontology:Q1047113 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q208242 property:P1142 ?s . ?s rdf:type ontology:Q7278 } } . FILTER ( ?w > ?x ) }
Liberal Democratic Party (Spain) Green League European Green Party Australian Greens Green Party Democratic Alternative Alliance of Liberals and Democrats for Europe Party People's Party of Galicia Canarian Coalition National Democratic Party of Germany Christian Democratic Union Green Confederation Democratic Union of Catalonia Liberal Democratic Centre Green Party Taiwan Asturias Forum Alliance '90/The Greens Catalan European Democratic Party People's Alliance People's Party of Cantabria Ecology Generation Europe Ecology – The Greens Alliance of European Conservatives and Reformists Federation of the Greens Green Party of Switzerland Equo Green Party of England and Wales Party of Democratic Reform Ciudadanos European People's Party The Greens People's Party of Navarre Liberal Democratic Party of Germany Greens New South Wales
34
action count
action greater
action find_tuple_counts
relation political ideology
type political party
type special field
action count
action filter_type
action find
entity European People's Party
relation political ideology
type political party
[{'concept': 'political party'}, 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?w ) WHERE { ?u property:political_ideology ?t . ?u rdf:type ontology:political_party . ?t rdf:type ontology:special_field } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:European_People's_Party property:political_ideology ?s . ?s rdf:type ontology:political_party } } . FILTER ( ?w > ?x ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q208242
P112
Q502895
USER
Which person was the founder of European People's Party ?
(Q208242,P112,c(Q502895))
action filter_type
action find
entity Q208242
relation P112
type Q502895
['Q208242', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q208242 property:P112 ?e . ?e rdf:type ontology:Q502895 }
European People's Party
action filter_type
action find
entity European People's Party
relation founder
type common name
["European People's Party", 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:European_People's_Party property:founder ?e . ?e rdf:type ontology:common_name }
[]
common name
Q153832
SYSTEM
Alcide De Gasperi
Q153832
(Q208242,P112,c(Q502895))
action filter_type
action find
entity Q208242
relation P112
type Q502895
[ANSWER] was the founder of European People's Party
['Q208242', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q208242 property:P112 ?e . ?e rdf:type ontology:Q502895 }
Alcide De Gasperi
Alcide De Gasperi was the founder of European People's Party
Alcide De Gasperi
action filter_type
action find
entity European People's Party
relation founder
type common name
["European People's Party", 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:European_People's_Party property:founder ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5577926
P21
Q290
USER
Which sex does Lars Björkman belong to ?
(Q5577926,P21,c(Q290))
action filter_type
action find
entity Q5577926
relation P21
type Q290
['Q5577926', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q5577926 property:P21 ?m . ?m rdf:type ontology:Q290 }
Lars Björkman
action filter_type
action find
entity Lars Björkman
relation gender
type sex
['Lars Björkman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Lars_Björkman property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5577926,P21,c(Q290))
action filter_type
action find
entity Q5577926
relation P21
type Q290
Lars Björkman belongs to [ANSWER]
['Q5577926', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q5577926 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
Lars Björkman belongs to male
male
action filter_type
action find
entity Lars Björkman
relation gender
type sex
['Lars Björkman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Lars_Björkman property:gender ?m . ?m rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q465196 Q5577926
P21
Q290
USER
Or Rex Brown?
OR((Q5577926,P21,c(Q290)), (Q465196,P21,c(Q290)))
action filter_type
action union
action find
entity Q5577926
relation P21
action find
entity Q465196
relation P21
type Q290
{'OR': [['Q5577926', 'P21', {'concept': 'Q290'}], ['Q465196', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Q5577926 ) ( resource:Q465196 ) } . ?h property:P21 ?j } . ?j rdf:type ontology:Q290 }
Rex Brown Lars Björkman
action filter_type
action union
action find
entity Lars Björkman
relation gender
action find
entity Rex Brown
relation gender
type sex
{'OR': [['Lars Björkman', 'gender', {'concept': 'sex'}], ['Rex Brown', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Lars_Björkman ) ( resource:Rex_Brown ) } . ?h property:gender ?j } . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q5577926,P21,c(Q290)), (Q465196,P21,c(Q290)))
action filter_type
action union
action find
entity Q5577926
relation P21
action find
entity Q465196
relation P21
type Q290
[ANSWER]
{'OR': [['Q5577926', 'P21', {'concept': 'Q290'}], ['Q465196', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Q5577926 ) ( resource:Q465196 ) } . ?h property:P21 ?j } . ?j rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity Lars Björkman
relation gender
action find
entity Rex Brown
relation gender
type sex
{'OR': [['Lars Björkman', 'gender', {'concept': 'sex'}], ['Rex Brown', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Lars_Björkman ) ( resource:Rex_Brown ) } . ?h property:gender ?j } . ?j rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by exactly 5 people ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?k = 5 ) }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?k = 5 ) }
[]
musical instrument common name
Q213461 Q213100
SYSTEM
harmonium, tabla
Q213461 Q213100
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[ANSWERS] are played by exactly 5 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?k = 5 ) }
harmonium tabla
Harmonium and tabla are played by exactly 5 people
harmonium tabla
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?k = 5 ) }
[]