Simple Question (Direct)
Simple Question
Q7331485
P106
Q12737077
USER
What are the job of Rick Jennings ?
(Q7331485,P106,c(Q12737077))
action filter_type
action find
entity Q7331485
relation P106
type Q12737077
['Q7331485', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q7331485 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Rick Jennings
action filter_type
action find
entity Rick Jennings
relation occupation
type occupation
['Rick Jennings', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Rick_Jennings property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q19204627 Q82955
SYSTEM
American football player, politician
Q19204627 Q82955
(Q7331485,P106,c(Q12737077))
action filter_type
action find
entity Q7331485
relation P106
type Q12737077
[ANSWERS]
['Q7331485', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q7331485 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
American football player politician
American football player politician
action filter_type
action find
entity Rick Jennings
relation occupation
type occupation
['Rick Jennings', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Rick_Jennings property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7331485
P21
Q290
USER
What is the sex of Rick Jennings ?
(Q7331485,P21,c(Q290))
action filter_type
action find
entity Q7331485
relation P21
type Q290
['Q7331485', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q7331485 property:P21 ?a . ?a rdf:type ontology:Q290 }
Rick Jennings
action filter_type
action find
entity Rick Jennings
relation gender
type sex
['Rick Jennings', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Rick_Jennings property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7331485,P21,c(Q290))
action filter_type
action find
entity Q7331485
relation P21
type Q290
[ANSWER]
['Q7331485', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q7331485 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Rick Jennings
relation gender
type sex
['Rick Jennings', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Rick_Jennings property:gender ?a . ?a rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q22109449
P21
Q502895
USER
Does Richard J. Twitchett have the gender as that sex ?
(Q22109449,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q22109449
relation P21
['Q22109449', 'P21', 'Q6581097']
ASK WHERE { resource:Q22109449 property:P21 resource:Q6581097 }
male Richard J. Twitchett
action is_in
entity male
action find
entity Richard J. Twitchett
relation gender
['Richard J. Twitchett', 'gender', 'male']
ASK WHERE { resource:Richard_J._Twitchett property:gender resource:male }
[]
common name
SYSTEM
YES
(Q22109449,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q22109449
relation P21
[ANSWER]
['Q22109449', 'P21', 'Q6581097']
ASK WHERE { resource:Q22109449 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Richard J. Twitchett
relation gender
['Richard J. Twitchett', 'gender', 'male']
ASK WHERE { resource:Richard_J._Twitchett property:gender resource:male }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q1752346 Q701632 Q12737077
USER
Which occupations were appointed by exactly 1 assemblies and municipal councils ?
(c(Q12737077),P748,c(Q1752346)|c(Q701632))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q701632
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?v ) WHERE { { ?y rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q701632 . ?y property:P748 ?q } UNION { ?y property:P748 ?q . ?y rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q1752346 } } GROUP BY ?y } }
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type municipal council
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?v ) WHERE { { ?y rdf:type ontology:occupation . ?q rdf:type ontology:municipal_council . ?y property:appointed_by ?q } UNION { ?y property:appointed_by ?q . ?y rdf:type ontology:occupation . ?q rdf:type ontology:assembly } } GROUP BY ?y } }
[]
assembly municipal council occupation
Q842386 Q1370482 Q20748656
SYSTEM
Prime Minister of Russia, President of Cuba, municipal executive of Zoetermeer
Q20748656 Q20890913 Q21371106 Q21013169 Q15305714 Q20872382 Q20872273 Q842386 Q19056310 Q890030 Q20891385 Q796593 Q21384866 Q20194364 Q21383592 Q7574264 Q20859388 Q20867550 Q20872296 Q3409203 Q327948 Q1370482 Q20872339 Q26209358 Q20992515 Q26721218 Q628102
(c(Q12737077),P748,c(Q1752346)|c(Q701632))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q701632
value 1
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?v ) WHERE { { ?y rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q701632 . ?y property:P748 ?q } UNION { ?y property:P748 ?q . ?y rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q1752346 } } GROUP BY ?y } }
municipal executive of Zoetermeer municipal executive of Eindhoven municipal executive of Amersfoort municipal executive of The Hague Prime Minister of Libya municipal executive of Coevorden municipal executive of Boxmeer Prime Minister of Russia President of Botswana State President of South Africa municipal executive of Deventer President of Malta municipal executive of Rotterdam municipal executive of Amsterdam municipal executive of Haarlem Speaker of the Hellenic Parliament municipal executive of Mierlo municipal executive of Gorinchem municipal executive of Almere President of Greece President of Israel President of Cuba municipal executive of Woerden municipal executive of Warffum municipal executive of Utrecht municipal executive of Almere President of Nauru
Prime Minister of Russia President of Cuba municipal executive of Zoetermeer
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type municipal council
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?v ) WHERE { { ?y rdf:type ontology:occupation . ?q rdf:type ontology:municipal_council . ?y property:appointed_by ?q } UNION { ?y property:appointed_by ?q . ?y rdf:type ontology:occupation . ?q rdf:type ontology:assembly } } GROUP BY ?y } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q15709879 Q3305213
USER
Which occupations are depicted in atleast 1 artwork series and paintings ?
(c(Q15709879)|c(Q3305213),P180,c(Q12737077))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
value 1
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?c ) WHERE { { ?g property:P180 ?k . ?g rdf:type ontology:Q3305213 . ?k rdf:type ontology:Q12737077 } UNION { ?g property:P180 ?k . ?k rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q15709879 } } GROUP BY ?k } . FILTER ( ?c >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
value 1
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?c ) WHERE { { ?g property:depicts ?k . ?g rdf:type ontology:painting . ?k rdf:type ontology:occupation } UNION { ?g property:depicts ?k . ?k rdf:type ontology:occupation . ?g rdf:type ontology:artwork_series } } GROUP BY ?k } . FILTER ( ?c >= 1 ) }
[]
occupation artwork series painting
Q131512 Q1401609 Q4991371
SYSTEM
farmer, vaquero, soldier
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q47064 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q805221 Q12097 Q12059906 Q622630 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100 Q39631
(c(Q15709879)|c(Q3305213),P180,c(Q12737077))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
value 1
[ANSWERS]
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?c ) WHERE { { ?g property:P180 ?k . ?g rdf:type ontology:Q3305213 . ?k rdf:type ontology:Q12737077 } UNION { ?g property:P180 ?k . ?k rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q15709879 } } GROUP BY ?k } . FILTER ( ?c >= 1 ) }
farmer vaquero lumberjack shepherd violinist religious servant detective military personnel pianist artist merchant mandolinist tax collector painter monk ballet dancer king herder odalisque trapper tennis player scrivener soldier Catholic priest chess player equestrian abbot executioner dancer maid picador peasant fisherman musician poet draughtsperson sculptor construction worker priest art model physician
farmer vaquero soldier
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
value 1
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?c ) WHERE { { ?g property:depicts ?k . ?g rdf:type ontology:painting . ?k rdf:type ontology:occupation } UNION { ?g property:depicts ?k . ?k rdf:type ontology:occupation . ?g rdf:type ontology:artwork_series } } GROUP BY ?k } . FILTER ( ?c >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q842386
P361
Q2324993
USER
Which branch is Prime Minister of Russia a component of ?
(Q842386,P361,c(Q2324993))
action filter_type
action find
entity Q842386
relation P361
type Q2324993
['Q842386', 'P361', {'concept': 'Q2324993'}]
SELECT DISTINCT ?b WHERE { resource:Q842386 property:P361 ?b . ?b rdf:type ontology:Q2324993 }
Prime Minister of Russia
action filter_type
action find
entity Prime Minister of Russia
relation part of
type branch
['Prime Minister of Russia', 'part of', {'concept': 'branch'}]
SELECT DISTINCT ?b WHERE { resource:Prime_Minister_of_Russia property:part_of ?b . ?b rdf:type ontology:branch }
[]
branch
Q1140115
SYSTEM
Government of the Russian Federation
Q1140115
(Q842386,P361,c(Q2324993))
action filter_type
action find
entity Q842386
relation P361
type Q2324993
[ANSWER]
['Q842386', 'P361', {'concept': 'Q2324993'}]
SELECT DISTINCT ?b WHERE { resource:Q842386 property:P361 ?b . ?b rdf:type ontology:Q2324993 }
Government of the Russian Federation
Government of the Russian Federation
action filter_type
action find
entity Prime Minister of Russia
relation part of
type branch
['Prime Minister of Russia', 'part of', {'concept': 'branch'}]
SELECT DISTINCT ?b WHERE { resource:Prime_Minister_of_Russia property:part_of ?b . ?b rdf:type ontology:branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q842386
P17
Q7275
USER
Which state is Prime Minister of Russia a part of ?
(Q842386,P17,c(Q7275))
action filter_type
action find
entity Q842386
relation P17
type Q7275
['Q842386', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { resource:Q842386 property:P17 ?n . ?n rdf:type ontology:Q7275 }
Prime Minister of Russia
action filter_type
action find
entity Prime Minister of Russia
relation country
type state
['Prime Minister of Russia', 'country', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { resource:Prime_Minister_of_Russia property:country ?n . ?n rdf:type ontology:state }
[]
state
Q2184
SYSTEM
Russian Soviet Federative Socialist Republic
Q2184
(Q842386,P17,c(Q7275))
action filter_type
action find
entity Q842386
relation P17
type Q7275
[ANSWER]
['Q842386', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { resource:Q842386 property:P17 ?n . ?n rdf:type ontology:Q7275 }
Russian Soviet Federative Socialist Republic
Russian Soviet Federative Socialist Republic
action filter_type
action find
entity Prime Minister of Russia
relation country
type state
['Prime Minister of Russia', 'country', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { resource:Prime_Minister_of_Russia property:country ?n . ?n rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q842386
P39
Q502895
USER
Which people were appointed for the position of that occupation ?
(c(Q502895),P39,Q2184)
action filter_type
action find_reverse
entity Q842386
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q2184']
SELECT DISTINCT ?m WHERE { ?m property:P39 resource:Q842386 . ?m rdf:type ontology:Q502895 }
Prime Minister of Russia
action filter_type
action find_reverse
entity Prime Minister of Russia
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Russian Soviet Federative Socialist Republic']
SELECT DISTINCT ?m WHERE { ?m property:position_held resource:Prime_Minister_of_Russia . ?m rdf:type ontology:common_name }
[]
common name
Q7747 Q34453 Q270529
SYSTEM
Vladimir Putin, Boris Yeltsin, Yevgeny Primakov
Q138487 Q23530 Q313989 Q150080 Q190884 Q48211 Q7747 Q62551 Q82695 Q34453 Q155329 Q313915 Q270529
(c(Q502895),P39,Q2184)
action filter_type
action find_reverse
entity Q842386
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q2184']
SELECT DISTINCT ?m WHERE { ?m property:P39 resource:Q842386 . ?m rdf:type ontology:Q502895 }
Pyotr Stolypin Dmitry Medvedev Sergei Stepashin Mikhail Fradkov Viktor Chernomyrdin Alexander Kerensky Vladimir Putin Mikhail Kasyanov Yegor Gaidar Boris Yeltsin Sergei Witte Sergey Kiriyenko Yevgeny Primakov
Vladimir Putin Boris Yeltsin Yevgeny Primakov
action filter_type
action find_reverse
entity Prime Minister of Russia
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Russian Soviet Federative Socialist Republic']
SELECT DISTINCT ?m WHERE { ?m property:position_held resource:Prime_Minister_of_Russia . ?m rdf:type ontology:common_name }
[]