Simple Question (Direct)
Simple Question
Q12739456
P102
Q7210356
USER
Which political organization is Robert Sorin Negoiță a member of ?
(Q12739456,P102,c(Q7210356))
action filter_type
action find
entity Q12739456
relation P102
type Q7210356
['Q12739456', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q12739456 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Robert Sorin Negoiță
action filter_type
action find
entity Robert Sorin Negoiță
relation member of political party
type political organization
['Robert Sorin Negoiță', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Robert_Sorin_Negoiță property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q752435
SYSTEM
Social Democratic Party
Q752435
(Q12739456,P102,c(Q7210356))
action filter_type
action find
entity Q12739456
relation P102
type Q7210356
Party [ANSWER] is Robert Sorin Negoiță a member of
['Q12739456', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q12739456 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Social Democratic Party
Party Social Democratic Party is Robert Sorin Negoiță a member of
Social Democratic Party
action filter_type
action find
entity Robert Sorin Negoiță
relation member of political party
type political organization
['Robert Sorin Negoiță', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Robert_Sorin_Negoiță property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q752435 Q259860 Q57692
P488
Q502895
USER
Is Keith Woodall and Victor Ponta a chairperson of Q752435 ?
(Q752435,P488,Q259860) (Q752435,P488,Q57692)
action is_in
entity Q752435
action intersection
action find_reverse
entity Q259860
relation P488
action find_reverse
entity Q57692
relation P488
['Q752435', 'P488', 'Q259860'] ['Q752435', 'P488', 'Q57692']
ASK WHERE { resource:Q752435 property:P488 resource:Q57692 . resource:Q752435 property:P488 resource:Q259860 }
Social Democratic Party Keith Woodall Victor Ponta
action is_in
entity Social Democratic Party
action intersection
action find_reverse
entity Keith Woodall
relation chairperson
action find_reverse
entity Victor Ponta
relation chairperson
['Social Democratic Party', 'chairperson', 'Keith Woodall'] ['Social Democratic Party', 'chairperson', 'Victor Ponta']
ASK WHERE { resource:Social_Democratic_Party property:chairperson resource:Victor_Ponta . resource:Social_Democratic_Party property:chairperson resource:Keith_Woodall }
[]
common name
SYSTEM
NO and YES respectively
(Q752435,P488,Q259860) (Q752435,P488,Q57692)
action is_in
entity Q752435
action intersection
action find_reverse
entity Q259860
relation P488
action find_reverse
entity Q57692
relation P488
[ANSWER]
['Q752435', 'P488', 'Q259860'] ['Q752435', 'P488', 'Q57692']
ASK WHERE { resource:Q752435 property:P488 resource:Q57692 . resource:Q752435 property:P488 resource:Q259860 }
NO and YES respectively
action is_in
entity Social Democratic Party
action intersection
action find_reverse
entity Keith Woodall
relation chairperson
action find_reverse
entity Victor Ponta
relation chairperson
['Social Democratic Party', 'chairperson', 'Keith Woodall'] ['Social Democratic Party', 'chairperson', 'Victor Ponta']
ASK WHERE { resource:Social_Democratic_Party property:chairperson resource:Victor_Ponta . resource:Social_Democratic_Party property:chairperson resource:Keith_Woodall }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q12739456 Q7508989
P27
Q15617994
USER
Is Sidney Central School District the native country of Robert Sorin Negoiță ?
(Q12739456,P27,Q7508989)
action is_in
entity Q7508989
action find
entity Q12739456
relation P27
['Q12739456', 'P27', 'Q7508989']
ASK WHERE { resource:Q12739456 property:P27 resource:Q7508989 }
Robert Sorin Negoiță Sidney Central School District
action is_in
entity Sidney Central School District
action find
entity Robert Sorin Negoiță
relation country of citizenship
['Robert Sorin Negoiță', 'country of citizenship', 'Sidney Central School District']
ASK WHERE { resource:Robert_Sorin_Negoiță property:country_of_citizenship resource:Sidney_Central_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q12739456,P27,Q7508989)
action is_in
entity Q7508989
action find
entity Q12739456
relation P27
[ANSWER]
['Q12739456', 'P27', 'Q7508989']
ASK WHERE { resource:Q12739456 property:P27 resource:Q7508989 }
No
action is_in
entity Sidney Central School District
action find
entity Robert Sorin Negoiță
relation country of citizenship
['Robert Sorin Negoiță', 'country of citizenship', 'Sidney Central School District']
ASK WHERE { resource:Robert_Sorin_Negoiță property:country_of_citizenship resource:Sidney_Central_School_District }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12739456
P106
Q12737077
USER
What is the profession of Robert Sorin Negoiță ?
(Q12739456,P106,c(Q12737077))
action filter_type
action find
entity Q12739456
relation P106
type Q12737077
['Q12739456', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q12739456 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Robert Sorin Negoiță
action filter_type
action find
entity Robert Sorin Negoiță
relation occupation
type occupation
['Robert Sorin Negoiță', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Robert_Sorin_Negoiță property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q12739456,P106,c(Q12737077))
action filter_type
action find
entity Q12739456
relation P106
type Q12737077
The profession of Robert Sorin Negoiță is a [ANSWER]
['Q12739456', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q12739456 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
politician
The profession of Robert Sorin Negoiță is a politician
politician
action filter_type
action find
entity Robert Sorin Negoiță
relation occupation
type occupation
['Robert Sorin Negoiță', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Robert_Sorin_Negoiță property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16269633
Q12737077
USER
And how about Blandine Delavenne?
(Q16269633,P106,c(Q12737077))
action filter_type
action find
entity Q16269633
relation P106
type Q12737077
['Q16269633', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q16269633 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Blandine Delavenne
action filter_type
action find
entity Blandine Delavenne
relation occupation
type occupation
['Blandine Delavenne', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Blandine_Delavenne property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q10843263
SYSTEM
field hockey player
Q10843263
(Q16269633,P106,c(Q12737077))
action filter_type
action find
entity Q16269633
relation P106
type Q12737077
[ANSWER]
['Q16269633', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q16269633 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
field hockey player
field hockey player
action filter_type
action find
entity Blandine Delavenne
relation occupation
type occupation
['Blandine Delavenne', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Blandine_Delavenne property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q450981 Q57692
P26
Q502895
USER
Which people are the spouse of Victor Ponta or Alma Rubens ?
OR((c(Q502895),P26,Q57692), (c(Q502895),P26,Q450981))
action filter_type
action union
action find_reverse
entity Q57692
relation P26
action find_reverse
entity Q450981
relation P26
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P26', 'Q57692'], [{'concept': 'Q502895'}, 'P26', 'Q450981']]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?k ) { ( resource:Q57692 ) ( resource:Q450981 ) } . ?l property:P26 ?k } . ?l rdf:type ontology:Q502895 }
Alma Rubens Victor Ponta
action filter_type
action union
action find_reverse
entity Victor Ponta
relation spouse
action find_reverse
entity Alma Rubens
relation spouse
type common name
{'OR': [[{'concept': 'common name'}, 'spouse', 'Victor Ponta'], [{'concept': 'common name'}, 'spouse', 'Alma Rubens']]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?k ) { ( resource:Victor_Ponta ) ( resource:Alma_Rubens ) } . ?l property:spouse ?k } . ?l rdf:type ontology:common_name }
[]
common name
Q274779 Q3013830 Q2033544 Q1273140 Q17278768
SYSTEM
Daciana Sârbu, Daniel Carson Goodman, Ricardo Cortez, Franklyn Farnum, Roxana Ponta
Q274779 Q3013830 Q2033544 Q1273140 Q17278768
OR((c(Q502895),P26,Q57692), (c(Q502895),P26,Q450981))
action filter_type
action union
action find_reverse
entity Q57692
relation P26
action find_reverse
entity Q450981
relation P26
type Q502895
[ANSWERS] are the spouse of Victor Ponta or Alma Rubens
{'OR': [[{'concept': 'Q502895'}, 'P26', 'Q57692'], [{'concept': 'Q502895'}, 'P26', 'Q450981']]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?k ) { ( resource:Q57692 ) ( resource:Q450981 ) } . ?l property:P26 ?k } . ?l rdf:type ontology:Q502895 }
Daciana Sârbu Daniel Carson Goodman Ricardo Cortez Franklyn Farnum Roxana Ponta
Daciana Sârbu, Daniel Carson Goodman, Ricardo Cortez, Franklyn Farnum and Roxana Ponta are the spouse of Victor Ponta or Alma Rubens
Daciana Sârbu Daniel Carson Goodman Ricardo Cortez Franklyn Farnum Roxana Ponta
action filter_type
action union
action find_reverse
entity Victor Ponta
relation spouse
action find_reverse
entity Alma Rubens
relation spouse
type common name
{'OR': [[{'concept': 'common name'}, 'spouse', 'Victor Ponta'], [{'concept': 'common name'}, 'spouse', 'Alma Rubens']]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?k ) { ( resource:Victor_Ponta ) ( resource:Alma_Rubens ) } . ?l property:spouse ?k } . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q82955 Q1420322
P39
Q502895
USER
How many people held the position of politician or Lieutenant Governor of Louisiana ?
(c(Q502895),P39,Q82955) (c(Q502895),P39,Q1420322)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
action filter_type
action find_reverse
entity Q1420322
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q1420322']
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:P39 ?j . VALUES ( ?j ) { ( resource:Q82955 ) ( resource:Q1420322 ) } }
politician Lieutenant Governor of Louisiana
action count
action union
action filter_type
action find_reverse
entity politician
relation position held
type common name
action filter_type
action find_reverse
entity Lieutenant Governor of Louisiana
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'Lieutenant Governor of Louisiana']
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:position_held ?j . VALUES ( ?j ) { ( resource:politician ) ( resource:Lieutenant_Governor_of_Louisiana ) } }
[]
common name
SYSTEM
15
Q5006401 Q7105947 Q237786 Q888586 Q5541483 Q15850723 Q887930 Q6170208 Q3317069 Q6200105 Q6166533 Q7341157 Q6812498 Q26215129 Q4908786
(c(Q502895),P39,Q82955) (c(Q502895),P39,Q1420322)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
action filter_type
action find_reverse
entity Q1420322
relation P39
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q1420322']
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:P39 ?j . VALUES ( ?j ) { ( resource:Q82955 ) ( resource:Q1420322 ) } }
C. E. "Cap" Barham Oscar Dunn Kathleen Blanco Earl Long George L. Walton Thomas C. Barret P. B. S. Pinchback Jean Baptiste Plauché Mitch Landrieu Jimmy Fitzmorris Jay Dardenne Robert Freeman Melinda Schwegmann Morteza Azari Bill Dodd
15
action count
action union
action filter_type
action find_reverse
entity politician
relation position held
type common name
action filter_type
action find_reverse
entity Lieutenant Governor of Louisiana
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'Lieutenant Governor of Louisiana']
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:position_held ?j . VALUES ( ?j ) { ( resource:politician ) ( resource:Lieutenant_Governor_of_Louisiana ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q950928 Q259860
P27
Q1048835
USER
Which political territories are Keith Woodall or Paul Gondjout an inhabitant of ?
OR((Q259860,P27,c(Q1048835)), (Q950928,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q259860
relation P27
action find
entity Q950928
relation P27
type Q1048835
{'OR': [['Q259860', 'P27', {'concept': 'Q1048835'}], ['Q950928', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { ?t property:P27 ?l . VALUES ( ?t ) { ( resource:Q259860 ) ( resource:Q950928 ) } } . ?l rdf:type ontology:Q1048835 }
Paul Gondjout Keith Woodall
action filter_type
action union
action find
entity Keith Woodall
relation country of citizenship
action find
entity Paul Gondjout
relation country of citizenship
type political territorial entity
{'OR': [['Keith Woodall', 'country of citizenship', {'concept': 'political territorial entity'}], ['Paul Gondjout', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?t property:country_of_citizenship ?l . VALUES ( ?t ) { ( resource:Keith_Woodall ) ( resource:Paul_Gondjout ) } } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q1000
SYSTEM
Canada, Gabon
Q16 Q1000
OR((Q259860,P27,c(Q1048835)), (Q950928,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q259860
relation P27
action find
entity Q950928
relation P27
type Q1048835
[ANSWERS] are Keith Woodall or Paul Gondjout an inhabitant of
{'OR': [['Q259860', 'P27', {'concept': 'Q1048835'}], ['Q950928', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { ?t property:P27 ?l . VALUES ( ?t ) { ( resource:Q259860 ) ( resource:Q950928 ) } } . ?l rdf:type ontology:Q1048835 }
Canada Gabon
Canada and Gabon are Keith Woodall or Paul Gondjout an inhabitant of
Canada Gabon
action filter_type
action union
action find
entity Keith Woodall
relation country of citizenship
action find
entity Paul Gondjout
relation country of citizenship
type political territorial entity
{'OR': [['Keith Woodall', 'country of citizenship', {'concept': 'political territorial entity'}], ['Paul Gondjout', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?t property:country_of_citizenship ?l . VALUES ( ?t ) { ( resource:Keith_Woodall ) ( resource:Paul_Gondjout ) } } . ?l rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1000
P915
Q838948
USER
Which work of art had that political territory as its location of filming ?
(c(Q838948),P915,Q1000)
action filter_type
action find_reverse
entity Q1000
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q1000']
SELECT DISTINCT ?a WHERE { ?a property:P915 resource:Q1000 . ?a rdf:type ontology:Q838948 }
Gabon
action filter_type
action find_reverse
entity Gabon
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Gabon']
SELECT DISTINCT ?a WHERE { ?a property:filming_location resource:Gabon . ?a rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q1000
SYSTEM
Did you mean Gabon ?
Q16 Q1000
(c(Q838948),P915,Q16) (c(Q838948),P915,Q1000)
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q16'] [{'concept': 'Q838948'}, 'P915', 'Q1000']
SELECT DISTINCT ?a WHERE { ?a property:P915 resource:Q1000 . ?a rdf:type ontology:Q838948 }
Canada Gabon
Did you mean Gabon ?
Gabon
[{'concept': 'work of art'}, 'filming location', 'Canada'] [{'concept': 'work of art'}, 'filming location', 'Gabon']
SELECT DISTINCT ?a WHERE { ?a property:filming_location resource:Gabon . ?a rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P915,Q1000)
[{'concept': 'Q838948'}, 'P915', 'Q1000']
[{'concept': 'work of art'}, 'filming location', 'Gabon']
[]
Q17361809
SYSTEM
The Legend of Tarzan
Q17361809
(c(Q838948),P915,Q1000)
action filter_type
action find_reverse
entity Q1000
relation P915
type Q838948
[ANSWER] had that political territory as its location of filming
[{'concept': 'Q838948'}, 'P915', 'Q1000']
SELECT DISTINCT ?a WHERE { ?a property:P915 resource:Q1000 . ?a rdf:type ontology:Q838948 }
The Legend of Tarzan
The Legend of Tarzan had that political territory as its location of filming
The Legend of Tarzan
action filter_type
action find_reverse
entity Gabon
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Gabon']
SELECT DISTINCT ?a WHERE { ?a property:filming_location resource:Gabon . ?a rdf:type ontology:work_of_art }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3499072
P180
Q12737077 Q340169 Q11060274
USER
Which occupations are expressed in greater number of medias or prints than chef ?
(c(Q340169)|c(Q11060274),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q3499072
relation P180
type Q340169
type Q11060274
[[{'concept': 'Q340169'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?s WHERE { VALUES ( ?y ) { ( ontology:Q11060274 ) ( ontology:Q340169 ) } . ?e rdf:type ?y } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P180 resource:Q3499072 . { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:Q340169 ) ( ontology:Q11060274 ) } } } } . FILTER ( ?k > ?d ) }
chef
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity chef
relation depicts
type media
type print
[[{'concept': 'media'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?s WHERE { VALUES ( ?y ) { ( ontology:print ) ( ontology:media ) } . ?e rdf:type ?y } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:depicts resource:chef . { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:media ) ( ontology:print ) } } } } . FILTER ( ?k > ?d ) }
[]
occupation media print
Q131512 Q186360 Q4991371
SYSTEM
farmer, nurse, soldier
Q2486919 Q177220 Q131512 Q2995983 Q45199 Q483501 Q186360 Q733786 Q4991371 Q376924 Q273108 Q589897 Q848466 Q20489032 Q1509714 Q11063 Q5716684 Q18575684 Q838811 Q2251335 Q639669 Q384593 Q1630100
(c(Q340169)|c(Q11060274),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q3499072
relation P180
type Q340169
type Q11060274
[ANSWERS] are expressed in greater number of medias or prints than chef
[[{'concept': 'Q340169'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?s WHERE { VALUES ( ?y ) { ( ontology:Q11060274 ) ( ontology:Q340169 ) } . ?e rdf:type ?y } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P180 resource:Q3499072 . { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:Q340169 ) ( ontology:Q11060274 ) } } } } . FILTER ( ?k > ?d ) }
standard-bearer singer farmer double-bassist sailor artist nurse monk soldier courtesan condottiero mahout courier salt pan worker porter astronomer dancer embroiderer peasant school teacher musician police officer art model
Farmer, nurse and soldier are expressed in greater number of medias or prints than chef
farmer nurse soldier
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action count
action filter_multi_types
action find_reverse
entity chef
relation depicts
type media
type print
[[{'concept': 'media'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?s WHERE { VALUES ( ?y ) { ( ontology:print ) ( ontology:media ) } . ?e rdf:type ?y } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:depicts resource:chef . { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:media ) ( ontology:print ) } } } } . FILTER ( ?k > ?d ) }
[]