Simple Question (Direct)
Simple Question
Q5317202
P106
Q12737077
USER
Which occupation has Dusty Redmon as his/her 's career ?
(Q5317202,P106,c(Q12737077))
action filter_type
action find
entity Q5317202
relation P106
type Q12737077
['Q5317202', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q5317202 property:P106 ?l }
Dusty Redmon
action filter_type
action find
entity Dusty Redmon
relation occupation
type occupation
['Dusty Redmon', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Dusty_Redmon property:occupation ?l }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q5317202,P106,c(Q12737077))
action filter_type
action find
entity Q5317202
relation P106
type Q12737077
The [ANSWER] has Dusty Redmon as his/her 's career
['Q5317202', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q5317202 property:P106 ?l }
composer
The composer has Dusty Redmon as his/her 's career
composer
action filter_type
action find
entity Dusty Redmon
relation occupation
type occupation
['Dusty Redmon', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Dusty_Redmon property:occupation ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36834
P417
Q502895
USER
What is the name of the patron saint of that occupation ?
(Q36834,P417,c(Q502895))
action filter_type
action find
entity Q36834
relation P417
type Q502895
['Q36834', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q36834 property:P417 ?a . ?a rdf:type ontology:Q502895 }
composer
action filter_type
action find
entity composer
relation patron saint
type common name
['composer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:composer property:patron_saint ?a . ?a rdf:type ontology:common_name }
[]
common name
Q80513
SYSTEM
Saint Cecilia
Q80513
(Q36834,P417,c(Q502895))
action filter_type
action find
entity Q36834
relation P417
type Q502895
The name of the patron saint of that occupation is [ANSWER]
['Q36834', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q36834 property:P417 ?a . ?a rdf:type ontology:Q502895 }
Saint Cecilia
The name of the patron saint of that occupation is Saint Cecilia
Saint Cecilia
action filter_type
action find
entity composer
relation patron saint
type common name
['composer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:composer property:patron_saint ?a . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q80513 Q94744
P138
Q16970
USER
Is Albi Cathedral named after that person ?
(Q94744,P138,Q80513)
action is_in
entity Q80513
action find
entity Q94744
relation P138
['Q94744', 'P138', 'Q80513']
ASK WHERE { resource:Q94744 property:P138 resource:Q80513 }
Saint Cecilia Albi Cathedral
action is_in
entity Saint Cecilia
action find
entity Albi Cathedral
relation named after
['Albi Cathedral', 'named after', 'Saint Cecilia']
ASK WHERE { resource:Albi_Cathedral property:named_after resource:Saint_Cecilia }
[]
church
SYSTEM
YES
(Q94744,P138,Q80513)
action is_in
entity Q80513
action find
entity Q94744
relation P138
[ANSWER]
['Q94744', 'P138', 'Q80513']
ASK WHERE { resource:Q94744 property:P138 resource:Q80513 }
Yes
action is_in
entity Saint Cecilia
action find
entity Albi Cathedral
relation named after
['Albi Cathedral', 'named after', 'Saint Cecilia']
ASK WHERE { resource:Albi_Cathedral property:named_after resource:Saint_Cecilia }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q80513
P411
Q82799
USER
Which name represents the canonization status of that person ?
action filter_type
action find
entity Q80513
relation P411
type Q82799
SELECT DISTINCT ?d WHERE { resource:Q80513 property:P411 ?d . ?d rdf:type ontology:Q82799 }
Saint Cecilia
action filter_type
action find
entity Saint Cecilia
relation canonization status
type name
SELECT DISTINCT ?d WHERE { resource:Saint_Cecilia property:canonization_status ?d . ?d rdf:type ontology:name }
[]
name
Q43115
SYSTEM
saint
Q43115
action filter_type
action find
entity Q80513
relation P411
type Q82799
The [ANSWER] represents the canonization status of that person
SELECT DISTINCT ?d WHERE { resource:Q80513 property:P411 ?d . ?d rdf:type ontology:Q82799 }
saint
The saint represents the canonization status of that person
saint
action filter_type
action find
entity Saint Cecilia
relation canonization status
type name
SELECT DISTINCT ?d WHERE { resource:Saint_Cecilia property:canonization_status ?d . ?d rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q43115 Q119289
P411
Q502895
USER
Does Leonard of Port Maurice have that name as their canonization status ?
(Q119289,P411,Q43115)
action is_in
entity Q43115
action find
entity Q119289
relation P411
['Q119289', 'P411', 'Q43115']
ASK WHERE { resource:Q119289 property:P411 resource:Q43115 }
saint Leonard of Port Maurice
action is_in
entity saint
action find
entity Leonard of Port Maurice
relation canonization status
['Leonard of Port Maurice', 'canonization status', 'saint']
ASK WHERE { resource:Leonard_of_Port_Maurice property:canonization_status resource:saint }
[]
common name
SYSTEM
YES
(Q119289,P411,Q43115)
action is_in
entity Q43115
action find
entity Q119289
relation P411
[ANSWER]
['Q119289', 'P411', 'Q43115']
ASK WHERE { resource:Q119289 property:P411 resource:Q43115 }
Yes
action is_in
entity saint
action find
entity Leonard of Port Maurice
relation canonization status
['Leonard of Port Maurice', 'canonization status', 'saint']
ASK WHERE { resource:Leonard_of_Port_Maurice property:canonization_status resource:saint }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5317202 Q30
P27
Q15617994
USER
Is United States of America the country of citizenship of Dusty Redmon ?
(Q5317202,P27,Q30)
action is_in
entity Q30
action find
entity Q5317202
relation P27
['Q5317202', 'P27', 'Q30']
ASK WHERE { resource:Q5317202 property:P27 resource:Q30 }
Dusty Redmon United States of America
action is_in
entity United States of America
action find
entity Dusty Redmon
relation country of citizenship
['Dusty Redmon', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Dusty_Redmon property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q5317202,P27,Q30)
action is_in
entity Q30
action find
entity Q5317202
relation P27
[ANSWER]
['Q5317202', 'P27', 'Q30']
ASK WHERE { resource:Q5317202 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Dusty Redmon
relation country of citizenship
['Dusty Redmon', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Dusty_Redmon property:country_of_citizenship resource:United_States_of_America }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43115
P140
Q874405
USER
Which social group does saint correspond to ?
(Q43115,P140,c(Q874405))
action filter_type
action find
entity Q43115
relation P140
type Q874405
['Q43115', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?e WHERE { resource:Q43115 property:P140 ?e . ?e rdf:type ontology:Q874405 }
saint
action filter_type
action find
entity saint
relation religion
type social group
['saint', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?e WHERE { resource:saint property:religion ?e . ?e rdf:type ontology:social_group }
[]
social group
Q5043
SYSTEM
Christianity
Q5043
(Q43115,P140,c(Q874405))
action filter_type
action find
entity Q43115
relation P140
type Q874405
Saint corresponds to [ANSWER]
['Q43115', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?e WHERE { resource:Q43115 property:P140 ?e . ?e rdf:type ontology:Q874405 }
Christianity
Saint corresponds to Christianity
Christianity
action filter_type
action find
entity saint
relation religion
type social group
['saint', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?e WHERE { resource:saint property:religion ?e . ?e rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5043
P740
Q56061
USER
Where did that social group orginate ?
(Q5043,P740,c(Q56061))
action filter_type
action find
entity Q5043
relation P740
type Q56061
['Q5043', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q5043 property:P740 ?p . ?p rdf:type ontology:Q56061 }
Christianity
action filter_type
action find
entity Christianity
relation location of formation
type administrative territorial entity
['Christianity', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Christianity property:location_of_formation ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1218
SYSTEM
Jerusalem
Q1218
(Q5043,P740,c(Q56061))
action filter_type
action find
entity Q5043
relation P740
type Q56061
That social group orginated in [ANSWER]
['Q5043', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q5043 property:P740 ?p . ?p rdf:type ontology:Q56061 }
Jerusalem
That social group orginated in Jerusalem
Jerusalem
action filter_type
action find
entity Christianity
relation location of formation
type administrative territorial entity
['Christianity', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Christianity property:location_of_formation ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q29182
P921
Q12737077 Q732577 Q838948
USER
Which occupations were discussed in approximately the same number of publications or works of art as bishop ?
(c(Q732577)|c(Q838948),P921,c(Q12737077))
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q29182
relation P921
type Q732577
type Q838948
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P921 resource:Q29182 . { { ?b rdf:type ontology:Q838948 } UNION { ?b rdf:type ontology:Q732577 } } } } . FILTER ( ?u = ?l ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?r WHERE { { ?h property:P921 ?r . ?h rdf:type ontology:Q732577 . ?r rdf:type ontology:Q12737077 } UNION { ?h rdf:type ontology:Q838948 . ?r rdf:type ontology:Q12737077 . ?h property:P921 ?r } } GROUP BY ?r } }
bishop
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 work of art
action count
action filter_multi_types
action find_reverse
entity bishop
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:main_subject resource:bishop . { { ?b rdf:type ontology:work_of_art } UNION { ?b rdf:type ontology:publication } } } } . FILTER ( ?u = ?l ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?r WHERE { { ?h property:main_subject ?r . ?h rdf:type ontology:publication . ?r rdf:type ontology:occupation } UNION { ?h rdf:type ontology:work_of_art . ?r rdf:type ontology:occupation . ?h property:main_subject ?r } } GROUP BY ?r } }
[]
occupation publication work of art
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q732577)|c(Q838948),P921,c(Q12737077))
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q29182
relation P921
type Q732577
type Q838948
[ANSWERS] were discussed in approximately the same number of publications or works of art as bishop
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P921 resource:Q29182 . { { ?b rdf:type ontology:Q838948 } UNION { ?b rdf:type ontology:Q732577 } } } } . FILTER ( ?u = ?l ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?r WHERE { { ?h property:P921 ?r . ?h rdf:type ontology:Q732577 . ?r rdf:type ontology:Q12737077 } UNION { ?h rdf:type ontology:Q838948 . ?r rdf:type ontology:Q12737077 . ?h property:P921 ?r } } GROUP BY ?r } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect 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 association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Fletcher Christian, farmer and librarian were discussed in approximately the same number of publications or works of art as bishop
Fletcher Christian farmer librarian
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 work of art
action count
action filter_multi_types
action find_reverse
entity bishop
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:main_subject resource:bishop . { { ?b rdf:type ontology:work_of_art } UNION { ?b rdf:type ontology:publication } } } } . FILTER ( ?u = ?l ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?r WHERE { { ?h property:main_subject ?r . ?h rdf:type ontology:publication . ?r rdf:type ontology:occupation } UNION { ?h rdf:type ontology:work_of_art . ?r rdf:type ontology:occupation . ?h property:main_subject ?r } } GROUP BY ?r } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3315094
P921
Q12737077 Q732577 Q838948
USER
And what about Prime Minister of Hungary?
(c(Q732577)|c(Q838948),P921,c(Q12737077))
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q3315094
relation P921
type Q732577
type Q838948
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?d ) WHERE { { ?o property:P921 ?f . ?f rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q732577 } UNION { ?f rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q838948 . ?o property:P921 ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:P921 resource:Q3315094 . { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } } } } . FILTER ( ?d = ?w ) }
Prime Minister of Hungary
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 work of art
action count
action filter_multi_types
action find_reverse
entity Prime Minister of Hungary
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?d ) WHERE { { ?o property:main_subject ?f . ?f rdf:type ontology:occupation . ?o rdf:type ontology:publication } UNION { ?f rdf:type ontology:occupation . ?o rdf:type ontology:work_of_art . ?o property:main_subject ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:main_subject resource:Prime_Minister_of_Hungary . { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:publication ) ( ontology:work_of_art ) } } } } . FILTER ( ?d = ?w ) }
[]
occupation publication work of art
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q732577)|c(Q838948),P921,c(Q12737077))
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q3315094
relation P921
type Q732577
type Q838948
[ANSWERS]
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?d ) WHERE { { ?o property:P921 ?f . ?f rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q732577 } UNION { ?f rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q838948 . ?o property:P921 ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:P921 resource:Q3315094 . { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } } } } . FILTER ( ?d = ?w ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect 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 association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Fletcher Christian farmer librarian
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 work of art
action count
action filter_multi_types
action find_reverse
entity Prime Minister of Hungary
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?d ) WHERE { { ?o property:main_subject ?f . ?f rdf:type ontology:occupation . ?o rdf:type ontology:publication } UNION { ?f rdf:type ontology:occupation . ?o rdf:type ontology:work_of_art . ?o property:main_subject ?f } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { ?y property:main_subject resource:Prime_Minister_of_Hungary . { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:publication ) ( ontology:work_of_art ) } } } } . FILTER ( ?d = ?w ) }
[]