Simple Question (Direct)
Simple Question
Q16104582
P106
Q12737077
USER
What are the job of Richard Woitach ?
(Q16104582,P106,c(Q12737077))
action filter_type
action find
entity Q16104582
relation P106
type Q12737077
['Q16104582', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q16104582 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Richard Woitach
action filter_type
action find
entity Richard Woitach
relation occupation
type occupation
['Richard Woitach', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Richard_Woitach property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q158852 Q36834 Q486748
SYSTEM
conductor, composer, pianist
Q158852 Q36834 Q486748
(Q16104582,P106,c(Q12737077))
action filter_type
action find
entity Q16104582
relation P106
type Q12737077
The job of Richard Woitach are [ANSWERS]
['Q16104582', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q16104582 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
conductor composer pianist
The job of Richard Woitach are conductor, composer and pianist
conductor composer pianist
action filter_type
action find
entity Richard Woitach
relation occupation
type occupation
['Richard Woitach', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Richard_Woitach property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16104582
P27
Q15617994
USER
Which administrative territory does Richard Woitach belong to ?
(Q16104582,P27,c(Q15617994))
action filter_type
action find
entity Q16104582
relation P27
type Q15617994
['Q16104582', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q16104582 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Richard Woitach
action filter_type
action find
entity Richard Woitach
relation country of citizenship
type designation for an administrative territorial entity
['Richard Woitach', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Richard_Woitach property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q16104582,P27,c(Q15617994))
action filter_type
action find
entity Q16104582
relation P27
type Q15617994
Richard Woitach belongs to [ANSWER]
['Q16104582', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q16104582 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
United States of America
Richard Woitach belongs to United States of America
United States of America
action filter_type
action find
entity Richard Woitach
relation country of citizenship
type designation for an administrative territorial entity
['Richard Woitach', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Richard_Woitach property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q12737077 Q1752346 Q12737077
USER
How many occupations did atleast 1 occupations or assemblies appoint ?
(c(Q12737077),P748,c(Q12737077)|c(Q1752346))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?c WHERE { VALUES ( ?y ) { ( ontology:Q12737077 ) ( ontology:Q1752346 ) } . ?d rdf:type ?y } GROUP BY ?c } . FILTER ( ?b >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?c WHERE { VALUES ( ?y ) { ( ontology:occupation ) ( ontology:assembly ) } . ?d rdf:type ?y } GROUP BY ?c } . FILTER ( ?b >= 1 ) }
[]
occupation assembly occupation
SYSTEM
121
Q15934457 Q748607 Q3253692 Q192711 Q6865816 Q6865958 Q3251824 Q737115 Q6578215 Q1146214 Q23906787 Q6866004 Q4377222 Q15304810 Q1511951 Q191827 Q1476458 Q15407843 Q20736121 Q19190022 Q3251837 Q6865747 Q15305714 Q1749063 Q24636364 Q14565638 Q251724 Q842386 Q19056310 Q890030 Q6572133 Q796593 Q1006398 Q6865770 Q274948 Q1723031 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q15971570 Q1430943 Q3556884 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1550276 Q208487 Q4294939 Q6866295 Q4377230 Q7240361 Q5195495 Q27088842 Q2560704 Q3251821 Q3251819 Q4294945 Q3564227 Q7574264 Q6866264 Q6865750 Q7240360 Q16933549 Q18694351 Q45369 Q1195049 Q6865853 Q687075 Q3251775 Q1587677 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q3251793 Q3409203 Q1192903 Q6865904 Q2741479 Q6123144 Q327948 Q3401758 Q7240356 Q6865864 Q13527909 Q3315114 Q11895063 Q1469153 Q12270260 Q6865789 Q1195270 Q6865781 Q7013201 Q2505890 Q6865756 Q1370482 Q16009376 Q3251800 Q3259469 Q5097071 Q6865981 Q3251807 Q13526082 Q6866016 Q1790154 Q6866422 Q3251818 Q6866427 Q628102 Q6865902 Q738695 Q844587 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q12737077)|c(Q1752346))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?c WHERE { VALUES ( ?y ) { ( ontology:Q12737077 ) ( ontology:Q1752346 ) } . ?d rdf:type ?y } GROUP BY ?c } . FILTER ( ?b >= 1 ) }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India Minister for Education and Skills Minister for Social Protection Minister of Natural Resources Prime Minister of Estonia Premier of Saskatchewan Tánaiste Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Prime Minister of Romania Prime Minister of South Africa Taoiseach European Commissioner for the Environment Prime Minister of South Korea Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Prime Minister of Libya Minister for Foreign Affairs of Sweden bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland Prime Minister of Russia President of Botswana State President of South Africa Governor of İstanbul President of Malta Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Prime Minister of Japan Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs President of the Generalitat Valenciana Prime Minister of Jamaica Deputy Prime Minister of Canada Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy Premier of Western Australia Prime Minister of Israel Minister of Agriculture Minister of Public Services and Procurement Prime Minister of Greece Premier of Prince Edward Island Minister of Economy and Finance of Peru Director of the Holy See Press Office Premier of Ontario Minister of Transport Minister of Fisheries and Oceans Minister for Finance Auditor General of Canada Speaker of the Hellenic Parliament Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia President of the Generalitat of Catalonia Minister of Communications Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Prime Minister of Sweden Minister of the Environment Prime Minister of France Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development Minister of Citizenship and Immigration President of Greece Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Secretary of State of Puerto Rico President of Israel Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Fiji Premier of Yukon Minister for Democratic Reform Prime Minister of Croatia Minister for Defence New York City Fire Commissioner Leader of the Government in the House of Commons Minister for Children and Youth Affairs President of Cuba Prime Minister of Albania Minister of Health Prime Minister of Poland Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec President of Nauru Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Prime Minister of Spain bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan
121
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?c WHERE { VALUES ( ?y ) { ( ontology:occupation ) ( ontology:assembly ) } . ?d rdf:type ?y } GROUP BY ?c } . FILTER ( ?b >= 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3128486
P180
Q12737077 Q3305213 Q17638008
USER
Which occupations are demonstrated in greater number of paintings or game equipment than high-ranking civil servant in France ?
(c(Q3305213)|c(Q17638008),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q3128486
relation P180
type Q3305213
type Q17638008
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?a WHERE { { ?e property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q3305213 } UNION { ?e property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q17638008 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P180 resource:Q3128486 . { VALUES ( ?r ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } . ?v rdf:type ?r } } } . FILTER ( ?h > ?b ) }
high-ranking civil servant in France
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity high-ranking civil servant in France
relation depicts
type painting
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?a WHERE { { ?e property:depicts ?a . ?a rdf:type ontology:occupation . ?e rdf:type ontology:painting } UNION { ?e property:depicts ?a . ?a rdf:type ontology:occupation . ?e rdf:type ontology:game_equipment } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:depicts resource:high-ranking_civil_servant_in_France . { VALUES ( ?r ) { ( ontology:painting ) ( ontology:game_equipment ) } . ?v rdf:type ?r } } } . FILTER ( ?h > ?b ) }
[]
occupation painting game equipment
Q131512 Q1401609 Q4991371
SYSTEM
farmer, vaquero, soldier
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q12097 Q12059906 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100
(c(Q3305213)|c(Q17638008),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q3128486
relation P180
type Q3305213
type Q17638008
[ANSWERS] are demonstrated in greater number of paintings or game equipment than high-ranking civil servant in France
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?a WHERE { { ?e property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q3305213 } UNION { ?e property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q17638008 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P180 resource:Q3128486 . { VALUES ( ?r ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } . ?v rdf:type ?r } } } . FILTER ( ?h > ?b ) }
farmer vaquero lumberjack shepherd violinist religious servant detective pianist artist merchant mandolinist tax collector painter monk king herder 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
Farmer, vaquero and soldier are demonstrated in greater number of paintings or game equipment than high-ranking civil servant in France
farmer vaquero soldier
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity high-ranking civil servant in France
relation depicts
type painting
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?a WHERE { { ?e property:depicts ?a . ?a rdf:type ontology:occupation . ?e rdf:type ontology:painting } UNION { ?e property:depicts ?a . ?a rdf:type ontology:occupation . ?e rdf:type ontology:game_equipment } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:depicts resource:high-ranking_civil_servant_in_France . { VALUES ( ?r ) { ( ontology:painting ) ( ontology:game_equipment ) } . ?v rdf:type ?r } } } . FILTER ( ?h > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q152002
P180
Q12737077 Q3305213 Q17638008
USER
And how about pastor?
(c(Q3305213)|c(Q17638008),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q152002
relation P180
type Q3305213
type Q17638008
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?i WHERE { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P180 resource:Q152002 . { { ?z rdf:type ontology:Q3305213 } UNION { ?z rdf:type ontology:Q17638008 } } } } . FILTER ( ?s > ?n ) }
pastor
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity pastor
relation depicts
type painting
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?i WHERE { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:painting ) ( ontology:game_equipment ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:depicts resource:pastor . { { ?z rdf:type ontology:painting } UNION { ?z rdf:type ontology:game_equipment } } } } . FILTER ( ?s > ?n ) }
[]
occupation painting game equipment
Q131512 Q1401609 Q4991371
SYSTEM
farmer, vaquero, soldier
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q12097 Q12059906 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100
(c(Q3305213)|c(Q17638008),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q152002
relation P180
type Q3305213
type Q17638008
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?i WHERE { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P180 resource:Q152002 . { { ?z rdf:type ontology:Q3305213 } UNION { ?z rdf:type ontology:Q17638008 } } } } . FILTER ( ?s > ?n ) }
farmer vaquero lumberjack shepherd violinist religious servant detective pianist artist merchant mandolinist tax collector painter monk king herder 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
farmer vaquero soldier
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity pastor
relation depicts
type painting
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?i WHERE { ?v rdf:type ?u . VALUES ( ?u ) { ( ontology:painting ) ( ontology:game_equipment ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:depicts resource:pastor . { { ?z rdf:type ontology:painting } UNION { ?z rdf:type ontology:game_equipment } } } } . FILTER ( ?s > ?n ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q582138 Q36834
P161 P417
Q502895
USER
Which people are the patron saint of composer or starred in Henry & June ?
OR((Q36834,P417,c(Q502895)), (Q582138,P161,c(Q502895)))
action filter_type
action union
action find
entity Q36834
relation P417
action find
entity Q582138
relation P161
type Q502895
{'OR': [['Q36834', 'P417', {'concept': 'Q502895'}], ['Q582138', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q36834 property:P417 ?e } UNION { resource:Q582138 property:P161 ?e } } . ?e rdf:type ontology:Q502895 }
Henry & June composer
action filter_type
action union
action find
entity composer
relation patron saint
action find
entity Henry & June
relation cast member
type common name
{'OR': [['composer', 'patron saint', {'concept': 'common name'}], ['Henry & June', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { { resource:composer property:patron_saint ?e } UNION { resource:Henry_&_June property:cast_member ?e } } . ?e rdf:type ontology:common_name }
[]
common name
Q125017 Q272053 Q235115 Q966237 Q25144 Q350714 Q3384901 Q3099901 Q83492 Q380856
SYSTEM
Some of them are Uma Thurman, Brigitte Lahaie, Maria de Medeiros, Féodor Atkine, Kevin Spacey, Fred Ward, Pierre Edernac, Gaëtan Bloom, Gary Oldman, Richard E. Grant
Q125017 Q966237 Q272053 Q83492 Q350714 Q235115 Q25144 Q3099901 Q80513 Q380856 Q3384901
OR((Q36834,P417,c(Q502895)), (Q582138,P161,c(Q502895)))
action filter_type
action union
action find
entity Q36834
relation P417
action find
entity Q582138
relation P161
type Q502895
[ANSWERS] are the patron saint of composer or starred in Henry & June
{'OR': [['Q36834', 'P417', {'concept': 'Q502895'}], ['Q582138', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q36834 property:P417 ?e } UNION { resource:Q582138 property:P161 ?e } } . ?e rdf:type ontology:Q502895 }
Uma Thurman Féodor Atkine Brigitte Lahaie Gary Oldman Fred Ward Maria de Medeiros Kevin Spacey Gaëtan Bloom Saint Cecilia Richard E. Grant Pierre Edernac
Uma Thurman, Brigitte Lahaie, Maria de Medeiros, Féodor Atkine, Kevin Spacey, Fred Ward, Pierre Edernac, Gaëtan Bloom, Gary Oldman and Richard E. Grant are the patron saint of composer or starred in Henry & June
Uma Thurman Brigitte Lahaie Maria de Medeiros Féodor Atkine Kevin Spacey Fred Ward Pierre Edernac Gaëtan Bloom Gary Oldman Richard E. Grant
action filter_type
action union
action find
entity composer
relation patron saint
action find
entity Henry & June
relation cast member
type common name
{'OR': [['composer', 'patron saint', {'concept': 'common name'}], ['Henry & June', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { { resource:composer property:patron_saint ?e } UNION { resource:Henry_&_June property:cast_member ?e } } . ?e rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q25144
P58
Q838948
USER
Which work of art is that person a screenwriter of ?
(c(Q838948),P58,Q25144)
action filter_type
action find_reverse
entity Q25144
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q25144']
SELECT DISTINCT ?k WHERE { ?k property:P58 resource:Q25144 . ?k rdf:type ontology:Q838948 }
Kevin Spacey
action filter_type
action find_reverse
entity Kevin Spacey
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Kevin Spacey']
SELECT DISTINCT ?k WHERE { ?k property:screenwriter resource:Kevin_Spacey . ?k rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q125017
SYSTEM
Did you mean Uma Thurman ?
Q125017 Q272053 Q235115 Q966237 Q25144 Q350714 Q3384901 Q3099901 Q83492 Q380856
(c(Q838948),P58,Q125017) (c(Q838948),P58,Q272053) (c(Q838948),P58,Q235115) (c(Q838948),P58,Q966237) (c(Q838948),P58,Q25144) (c(Q838948),P58,Q350714) (c(Q838948),P58,Q3384901) (c(Q838948),P58,Q3099901) (c(Q838948),P58,Q83492) (c(Q838948),P58,Q380856)
[ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q125017'] [{'concept': 'Q838948'}, 'P58', 'Q272053'] [{'concept': 'Q838948'}, 'P58', 'Q235115'] [{'concept': 'Q838948'}, 'P58', 'Q966237'] [{'concept': 'Q838948'}, 'P58', 'Q25144'] [{'concept': 'Q838948'}, 'P58', 'Q350714'] [{'concept': 'Q838948'}, 'P58', 'Q3384901'] [{'concept': 'Q838948'}, 'P58', 'Q3099901'] [{'concept': 'Q838948'}, 'P58', 'Q83492'] [{'concept': 'Q838948'}, 'P58', 'Q380856']
SELECT DISTINCT ?k WHERE { ?k property:P58 resource:Q25144 . ?k rdf:type ontology:Q838948 }
Uma Thurman Brigitte Lahaie Maria de Medeiros Féodor Atkine Kevin Spacey Fred Ward Pierre Edernac Gaëtan Bloom Gary Oldman Richard E. Grant
Did you mean Uma Thurman ?
Uma Thurman
[{'concept': 'work of art'}, 'screenwriter', 'Uma Thurman'] [{'concept': 'work of art'}, 'screenwriter', 'Brigitte Lahaie'] [{'concept': 'work of art'}, 'screenwriter', 'Maria de Medeiros'] [{'concept': 'work of art'}, 'screenwriter', 'Féodor Atkine'] [{'concept': 'work of art'}, 'screenwriter', 'Kevin Spacey'] [{'concept': 'work of art'}, 'screenwriter', 'Fred Ward'] [{'concept': 'work of art'}, 'screenwriter', 'Pierre Edernac'] [{'concept': 'work of art'}, 'screenwriter', 'Gaëtan Bloom'] [{'concept': 'work of art'}, 'screenwriter', 'Gary Oldman'] [{'concept': 'work of art'}, 'screenwriter', 'Richard E. Grant']
SELECT DISTINCT ?k WHERE { ?k property:screenwriter resource:Kevin_Spacey . ?k rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Kevin Spacey. Could you tell me the answer for that?
(c(Q838948),P58,Q25144)
Q25144
[{'concept': 'Q838948'}, 'P58', 'Q25144']
[{'concept': 'work of art'}, 'screenwriter', 'Kevin Spacey']
[]
Q162458
SYSTEM
Beyond the Sea
Q162458
(c(Q838948),P58,Q25144)
action filter_type
action find_reverse
entity Q25144
relation P58
type Q838948
[ANSWER] is that person a screenwriter of
[{'concept': 'Q838948'}, 'P58', 'Q25144']
SELECT DISTINCT ?k WHERE { ?k property:P58 resource:Q25144 . ?k rdf:type ontology:Q838948 }
Beyond the Sea
Beyond the Sea is that person a screenwriter of
Beyond the Sea
action filter_type
action find_reverse
entity Kevin Spacey
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Kevin Spacey']
SELECT DISTINCT ?k WHERE { ?k property:screenwriter resource:Kevin_Spacey . ?k rdf:type ontology:work_of_art }
[]