Simple Question (Direct)
Simple Question
Q4894168
P106
Q12737077
USER
Which occupation has Bernhard Eriksson as his/her 's career ?
(Q4894168,P106,c(Q12737077))
action filter_type
action find
entity Q4894168
relation P106
type Q12737077
['Q4894168', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q4894168 property:P106 ?j }
Bernhard Eriksson
action filter_type
action find
entity Bernhard Eriksson
relation occupation
type occupation
['Bernhard Eriksson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Bernhard_Eriksson property:occupation ?j }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q4894168,P106,c(Q12737077))
action filter_type
action find
entity Q4894168
relation P106
type Q12737077
The [ANSWER] has Bernhard Eriksson as his/her 's career
['Q4894168', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q4894168 property:P106 ?j }
politician
The politician has Bernhard Eriksson as his/her 's career
politician
action filter_type
action find
entity Bernhard Eriksson
relation occupation
type occupation
['Bernhard Eriksson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Bernhard_Eriksson property:occupation ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4894168
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q82955,P102,c(Q7210356))
action filter_type
action find
entity Q4894168
relation P102
type Q7210356
['Q82955', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7210356 . resource:Q4894168 property:P102 ?u }
Bernhard Eriksson
action filter_type
action find
entity Bernhard Eriksson
relation member of political party
type political organization
['politician', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_organization . resource:Bernhard_Eriksson property:member_of_political_party ?u }
[]
political organization
Q105112
SYSTEM
Swedish Social Democratic Party
Q105112
(Q82955,P102,c(Q7210356))
action filter_type
action find
entity Q4894168
relation P102
type Q7210356
[ANSWER] is that person a member of
['Q82955', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7210356 . resource:Q4894168 property:P102 ?u }
Swedish Social Democratic Party
Swedish Social Democratic Party is that person a member of
Swedish Social Democratic Party
action filter_type
action find
entity Bernhard Eriksson
relation member of political party
type political organization
['politician', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_organization . resource:Bernhard_Eriksson property:member_of_political_party ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4894168
P39
Q12737077
USER
Which occupation was a position occupied by Bernhard Eriksson ?
(Q4894168,P39,c(Q12737077))
action filter_type
action find
entity Q4894168
relation P39
type Q12737077
['Q4894168', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q4894168 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Bernhard Eriksson
action filter_type
action find
entity Bernhard Eriksson
relation position held
type occupation
['Bernhard Eriksson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Bernhard_Eriksson property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q10655178
SYSTEM
Member of the Riksdag
Q10655178
(Q4894168,P39,c(Q12737077))
action filter_type
action find
entity Q4894168
relation P39
type Q12737077
[ANSWER] was a position occupied by Bernhard Eriksson
['Q4894168', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q4894168 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Member of the Riksdag
Member of the Riksdag was a position occupied by Bernhard Eriksson
Member of the Riksdag
action filter_type
action find
entity Bernhard Eriksson
relation position held
type occupation
['Bernhard Eriksson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Bernhard_Eriksson property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2095549
P921
Q12737077 Q732577 Q2342494
USER
How many occupations were discussed in approximately the same number of publications and collectables as aviator ?
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2095549
relation P921
type Q732577
type Q2342494
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?p WHERE { VALUES ( ?e ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } . ?b rdf:type ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:P921 resource:Q2095549 . { { ?s rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q732577 } } } } . FILTER ( ?h = ?r ) }
aviator
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity aviator
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?p WHERE { VALUES ( ?e ) { ( ontology:publication ) ( ontology:collectable ) } . ?b rdf:type ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:main_subject resource:aviator . { { ?s rdf:type ontology:collectable } UNION { ?s rdf:type ontology:publication } } } } . FILTER ( ?h = ?r ) }
[]
occupation publication collectable
SYSTEM
77
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q3315094 Q622807 Q7358 Q131512 Q1708232 Q842782 Q378622 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q486839 Q510373 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q152002 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q17143199 Q384593 Q2095549 Q372436 Q182436 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2095549
relation P921
type Q732577
type Q2342494
[ANSWER]
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?p WHERE { VALUES ( ?e ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } . ?b rdf:type ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:P921 resource:Q2095549 . { { ?s rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q732577 } } } } . FILTER ( ?h = ?r ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer Prime Minister of Hungary seiyū clown farmer medallist detective racing driver Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate taxi driver gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier member of parliament Lord High Steward violist Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil artist pastor cartoonist judge nanny caricaturist painter American football player legal profession composer rabbi völva conductor comedian photographer peasant missionary United States federal judge musician Nomarch medical examiner police officer aviator statesman librarian rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
77
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity aviator
relation main subject
type publication
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?p WHERE { VALUES ( ?e ) { ( ontology:publication ) ( ontology:collectable ) } . ?b rdf:type ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:main_subject resource:aviator . { { ?s rdf:type ontology:collectable } UNION { ?s rdf:type ontology:publication } } } } . FILTER ( ?h = ?r ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19512184 Q10655178
P1001 P17
Q15617994
USER
Which administrative territories come under the supervision of Member of the Riksdag or are Schoutenstraat situated in ?
OR((Q10655178,P1001,c(Q15617994)), (Q19512184,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10655178
relation P1001
action find
entity Q19512184
relation P17
type Q15617994
{'OR': [['Q10655178', 'P1001', {'concept': 'Q15617994'}], ['Q19512184', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q19512184 property:P17 ?g } UNION { resource:Q10655178 property:P1001 ?g } } . ?g rdf:type ontology:Q15617994 }
Schoutenstraat Member of the Riksdag
action filter_type
action union
action find
entity Member of the Riksdag
relation applies to jurisdiction
action find
entity Schoutenstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Member of the Riksdag', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Schoutenstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Schoutenstraat property:country ?g } UNION { resource:Member_of_the_Riksdag property:applies_to_jurisdiction ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q34
SYSTEM
Netherlands, Sweden
Q55 Q34
OR((Q10655178,P1001,c(Q15617994)), (Q19512184,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10655178
relation P1001
action find
entity Q19512184
relation P17
type Q15617994
[ANSWERS] come under the supervision of Member of the Riksdag or are Schoutenstraat situated in
{'OR': [['Q10655178', 'P1001', {'concept': 'Q15617994'}], ['Q19512184', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q19512184 property:P17 ?g } UNION { resource:Q10655178 property:P1001 ?g } } . ?g rdf:type ontology:Q15617994 }
Netherlands Sweden
Netherlands and Sweden come under the supervision of Member of the Riksdag or are Schoutenstraat situated in
Netherlands Sweden
action filter_type
action union
action find
entity Member of the Riksdag
relation applies to jurisdiction
action find
entity Schoutenstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Member of the Riksdag', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}], ['Schoutenstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Schoutenstraat property:country ?g } UNION { resource:Member_of_the_Riksdag property:applies_to_jurisdiction ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2076922
P27
Q502895
USER
Are Martin Mytens a native of those administrative territories ?
(Q2076922,P27,Q55) (Q2076922,P27,Q34)
action is_in
entity prev_answer
action find
entity Q2076922
relation P27
['Q2076922', 'P27', 'Q55'] ['Q2076922', 'P27', 'Q34']
ASK WHERE { resource:Q2076922 property:P27 ?j . VALUES ( ?j ) { ( resource:Q55 ) ( resource:Q34 ) } }
Martin Mytens
action is_in
entity prev_answer
action find
entity Martin Mytens
relation country of citizenship
['Martin Mytens', 'country of citizenship', 'Netherlands'] ['Martin Mytens', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Martin_Mytens property:country_of_citizenship ?j . VALUES ( ?j ) { ( resource:Netherlands ) ( resource:Sweden ) } }
[]
common name
SYSTEM
YES
(Q2076922,P27,Q55) (Q2076922,P27,Q34)
action is_in
entity prev_answer
action find
entity Q2076922
relation P27
[ANSWER]
['Q2076922', 'P27', 'Q55'] ['Q2076922', 'P27', 'Q34']
ASK WHERE { resource:Q2076922 property:P27 ?j . VALUES ( ?j ) { ( resource:Q55 ) ( resource:Q34 ) } }
Yes
action is_in
entity prev_answer
action find
entity Martin Mytens
relation country of citizenship
['Martin Mytens', 'country of citizenship', 'Netherlands'] ['Martin Mytens', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Martin_Mytens property:country_of_citizenship ?j . VALUES ( ?j ) { ( resource:Netherlands ) ( resource:Sweden ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q10655178 Q34
P17
Q15617994
USER
Is Member of the Riksdag present in Sweden ?
(Q10655178,P17,Q34)
action is_in
entity Q34
action find
entity Q10655178
relation P17
['Q10655178', 'P17', 'Q34']
ASK WHERE { resource:Q10655178 property:P17 resource:Q34 }
Member of the Riksdag Sweden
action is_in
entity Sweden
action find
entity Member of the Riksdag
relation country
['Member of the Riksdag', 'country', 'Sweden']
ASK WHERE { resource:Member_of_the_Riksdag property:country resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q10655178,P17,Q34)
action is_in
entity Q34
action find
entity Q10655178
relation P17
[ANSWER]
['Q10655178', 'P17', 'Q34']
ASK WHERE { resource:Q10655178 property:P17 resource:Q34 }
Yes
action is_in
entity Sweden
action find
entity Member of the Riksdag
relation country
['Member of the Riksdag', 'country', 'Sweden']
ASK WHERE { resource:Member_of_the_Riksdag property:country resource:Sweden }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q10655178
P17
Q15617994
USER
How many administrative territories do Member of the Riksdag belong to ?
(Q10655178,P17,c(Q15617994))
action count
action filter_type
action find
entity Q10655178
relation P17
type Q15617994
['Q10655178', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Q10655178 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Member of the Riksdag
action count
action filter_type
action find
entity Member of the Riksdag
relation country
type designation for an administrative territorial entity
['Member of the Riksdag', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Member_of_the_Riksdag property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q34
(Q10655178,P17,c(Q15617994))
action count
action filter_type
action find
entity Q10655178
relation P17
type Q15617994
[ANSWER]
['Q10655178', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Q10655178 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Sweden
1
action count
action filter_type
action find
entity Member of the Riksdag
relation country
type designation for an administrative territorial entity
['Member of the Riksdag', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Member_of_the_Riksdag property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4894168 Q1754
P937
Q56061
USER
Did that person work Stockholm ?
(Q4894168,P937,Q1754)
action is_in
entity Q1754
action find
entity Q4894168
relation P937
['Q4894168', 'P937', 'Q1754']
ASK WHERE { resource:Q4894168 property:P937 resource:Q1754 }
Bernhard Eriksson Stockholm
action is_in
entity Stockholm
action find
entity Bernhard Eriksson
relation work location
['Bernhard Eriksson', 'work location', 'Stockholm']
ASK WHERE { resource:Bernhard_Eriksson property:work_location resource:Stockholm }
[]
administrative territorial entity
SYSTEM
YES
(Q4894168,P937,Q1754)
action is_in
entity Q1754
action find
entity Q4894168
relation P937
[ANSWER]
['Q4894168', 'P937', 'Q1754']
ASK WHERE { resource:Q4894168 property:P937 resource:Q1754 }
Yes
action is_in
entity Stockholm
action find
entity Bernhard Eriksson
relation work location
['Bernhard Eriksson', 'work location', 'Stockholm']
ASK WHERE { resource:Bernhard_Eriksson property:work_location resource:Stockholm }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q105112 Q53747
P488
Q502895
USER
Was Göran Persson the chair of Swedish Social Democratic Party ?
(Q105112,P488,Q53747)
action is_in
entity Q53747
action find
entity Q105112
relation P488
['Q105112', 'P488', 'Q53747']
ASK WHERE { resource:Q105112 property:P488 resource:Q53747 }
Swedish Social Democratic Party Göran Persson
action is_in
entity Göran Persson
action find
entity Swedish Social Democratic Party
relation chairperson
['Swedish Social Democratic Party', 'chairperson', 'Göran Persson']
ASK WHERE { resource:Swedish_Social_Democratic_Party property:chairperson resource:Göran_Persson }
[]
common name
SYSTEM
YES
(Q105112,P488,Q53747)
action is_in
entity Q53747
action find
entity Q105112
relation P488
[ANSWER]
['Q105112', 'P488', 'Q53747']
ASK WHERE { resource:Q105112 property:P488 resource:Q53747 }
Yes
action is_in
entity Göran Persson
action find
entity Swedish Social Democratic Party
relation chairperson
['Swedish Social Democratic Party', 'chairperson', 'Göran Persson']
ASK WHERE { resource:Swedish_Social_Democratic_Party property:chairperson resource:Göran_Persson }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q10655178 Q34 Q55
P17
Q15617994
USER
Is Member of the Riksdag located in Sweden and Netherlands ?
(Q10655178,P17,Q34) (Q10655178,P17,Q55)
action is_in
entity Q10655178
action intersection
action find_reverse
entity Q34
relation P17
action find_reverse
entity Q55
relation P17
['Q10655178', 'P17', 'Q34'] ['Q10655178', 'P17', 'Q55']
ASK WHERE { resource:Q10655178 property:P17 resource:Q34 . resource:Q10655178 property:P17 resource:Q55 }
Member of the Riksdag Sweden Netherlands
action is_in
entity Member of the Riksdag
action intersection
action find_reverse
entity Sweden
relation country
action find_reverse
entity Netherlands
relation country
['Member of the Riksdag', 'country', 'Sweden'] ['Member of the Riksdag', 'country', 'Netherlands']
ASK WHERE { resource:Member_of_the_Riksdag property:country resource:Sweden . resource:Member_of_the_Riksdag property:country resource:Netherlands }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q10655178,P17,Q34) (Q10655178,P17,Q55)
action is_in
entity Q10655178
action intersection
action find_reverse
entity Q34
relation P17
action find_reverse
entity Q55
relation P17
[ANSWER]
['Q10655178', 'P17', 'Q34'] ['Q10655178', 'P17', 'Q55']
ASK WHERE { resource:Q10655178 property:P17 resource:Q34 . resource:Q10655178 property:P17 resource:Q55 }
YES and NO respectively
action is_in
entity Member of the Riksdag
action intersection
action find_reverse
entity Sweden
relation country
action find_reverse
entity Netherlands
relation country
['Member of the Riksdag', 'country', 'Sweden'] ['Member of the Riksdag', 'country', 'Netherlands']
ASK WHERE { resource:Member_of_the_Riksdag property:country resource:Sweden . resource:Member_of_the_Riksdag property:country resource:Netherlands }
[]