Simple Question (Direct)
Simple Question
Q3379270
P69
Q163740
USER
Where was Philippe Autier educated ?
(Q3379270,P69,c(Q163740))
action filter_type
action find
entity Q3379270
relation P69
type Q163740
['Q3379270', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?j WHERE { resource:Q3379270 property:P69 ?j . ?j rdf:type ontology:Q163740 }
Philippe Autier
action filter_type
action find
entity Philippe Autier
relation educated at
type nonprofit organization
['Philippe Autier', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?j WHERE { resource:Philippe_Autier property:educated_at ?j . ?j rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(Q3379270,P69,c(Q163740))
action filter_type
action find
entity Q3379270
relation P69
type Q163740
Philippe Autier was educated at [ANSWER]
['Q3379270', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?j WHERE { resource:Q3379270 property:P69 ?j . ?j rdf:type ontology:Q163740 }
Harvard University
Philippe Autier was educated at Harvard University
Harvard University
action filter_type
action find
entity Philippe Autier
relation educated at
type nonprofit organization
['Philippe Autier', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?j WHERE { resource:Philippe_Autier property:educated_at ?j . ?j rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3379270
P106
Q12737077
USER
What is the profession of Philippe Autier ?
(Q3379270,P106,c(Q12737077))
action filter_type
action find
entity Q3379270
relation P106
type Q12737077
['Q3379270', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q3379270 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Philippe Autier
action filter_type
action find
entity Philippe Autier
relation occupation
type occupation
['Philippe Autier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Philippe_Autier property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q13416803
SYSTEM
epidemiologist
Q13416803
(Q3379270,P106,c(Q12737077))
action filter_type
action find
entity Q3379270
relation P106
type Q12737077
The profession of Philippe Autier is an [ANSWER]
['Q3379270', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q3379270 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
epidemiologist
The profession of Philippe Autier is an epidemiologist
epidemiologist
action filter_type
action find
entity Philippe Autier
relation occupation
type occupation
['Philippe Autier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Philippe_Autier property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5389789
Q12737077
USER
And how about Erling Bjerno?
(Q5389789,P106,c(Q12737077))
action filter_type
action find
entity Q5389789
relation P106
type Q12737077
['Q5389789', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5389789 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Erling Bjerno
action filter_type
action find
entity Erling Bjerno
relation occupation
type occupation
['Erling Bjerno', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Erling_Bjerno property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q5389789,P106,c(Q12737077))
action filter_type
action find
entity Q5389789
relation P106
type Q12737077
[ANSWER]
['Q5389789', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5389789 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
composer
composer
action filter_type
action find
entity Erling Bjerno
relation occupation
type occupation
['Erling Bjerno', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Erling_Bjerno property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13371
P127
Q811979
USER
Which architectural structures belongs to Harvard University ?
(c(Q811979),P127,Q13371)
action filter_type
action find_reverse
entity Q13371
relation P127
type Q811979
[{'concept': 'Q811979'}, 'P127', 'Q13371']
SELECT DISTINCT ?y WHERE { ?y property:P127 resource:Q13371 . ?y rdf:type ontology:Q811979 }
Harvard University
action filter_type
action find_reverse
entity Harvard University
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Harvard University']
SELECT DISTINCT ?y WHERE { ?y property:owned_by resource:Harvard_University . ?y rdf:type ontology:architectural_structure }
[]
architectural structure
Q6743907 Q6284262
SYSTEM
Malkin Athletic Center, Joseph J. O'Donnell Field
Q6743907 Q6284262
(c(Q811979),P127,Q13371)
action filter_type
action find_reverse
entity Q13371
relation P127
type Q811979
The [ANSWERS] belong to Harvard University
[{'concept': 'Q811979'}, 'P127', 'Q13371']
SELECT DISTINCT ?y WHERE { ?y property:P127 resource:Q13371 . ?y rdf:type ontology:Q811979 }
Malkin Athletic Center Joseph J. O'Donnell Field
The Malkin Athletic Center and Joseph J. O'Donnell Field belong to Harvard University
Malkin Athletic Center Joseph J. O'Donnell Field
action filter_type
action find_reverse
entity Harvard University
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Harvard University']
SELECT DISTINCT ?y WHERE { ?y property:owned_by resource:Harvard_University . ?y rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q6743907 Q6284262
P17
Q15617994
USER
Which administrative territories are those architectural structures present in ?
(Q6743907,P17,c(Q15617994)) (Q6284262,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q6743907', 'P17', {'concept': 'Q15617994'}] ['Q6284262', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?l property:P17 ?v . ?v rdf:type ontology:Q15617994 . VALUES ( ?l ) { ( resource:Q6743907 ) ( resource:Q6284262 ) } }
Malkin Athletic Center Joseph J. O'Donnell Field
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Malkin Athletic Center', 'country', {'concept': 'designation for an administrative territorial entity'}] ["Joseph J. O'Donnell Field", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?l property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?l ) { ( resource:Malkin_Athletic_Center ) ( resource:Joseph_J._O'Donnell_Field ) } }
[]
designation for an administrative territorial entity
Q30 Q30
SYSTEM
United States of America
Q30 Q30
(Q6743907,P17,c(Q15617994)) (Q6284262,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those architectural structures are the [ANSWER] and [ANSWER]
['Q6743907', 'P17', {'concept': 'Q15617994'}] ['Q6284262', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?l property:P17 ?v . ?v rdf:type ontology:Q15617994 . VALUES ( ?l ) { ( resource:Q6743907 ) ( resource:Q6284262 ) } }
United States of America United States of America
Those architectural structures are the United States of America and United States of America
United States of America United States of America
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Malkin Athletic Center', 'country', {'concept': 'designation for an administrative territorial entity'}] ["Joseph J. O'Donnell Field", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?l property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?l ) { ( resource:Malkin_Athletic_Center ) ( resource:Joseph_J._O'Donnell_Field ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6743907
P466
Q847017
USER
Which sports club is an occupant of Malkin Athletic Center ?
(Q6743907,P466,c(Q847017))
action filter_type
action find
entity Q6743907
relation P466
type Q847017
['Q6743907', 'P466', {'concept': 'Q847017'}]
SELECT DISTINCT ?m WHERE { resource:Q6743907 property:P466 ?m . ?m rdf:type ontology:Q847017 }
Malkin Athletic Center
action filter_type
action find
entity Malkin Athletic Center
relation occupant
type sports club
['Malkin Athletic Center', 'occupant', {'concept': 'sports club'}]
SELECT DISTINCT ?m WHERE { resource:Malkin_Athletic_Center property:occupant ?m . ?m rdf:type ontology:sports_club }
[]
sports club
Q1573151
SYSTEM
Harvard Crimson
Q1573151
(Q6743907,P466,c(Q847017))
action filter_type
action find
entity Q6743907
relation P466
type Q847017
Team [ANSWER] is an occupant of Malkin Athletic Center
['Q6743907', 'P466', {'concept': 'Q847017'}]
SELECT DISTINCT ?m WHERE { resource:Q6743907 property:P466 ?m . ?m rdf:type ontology:Q847017 }
Harvard Crimson
Team Harvard Crimson is an occupant of Malkin Athletic Center
Harvard Crimson
action filter_type
action find
entity Malkin Athletic Center
relation occupant
type sports club
['Malkin Athletic Center', 'occupant', {'concept': 'sports club'}]
SELECT DISTINCT ?m WHERE { resource:Malkin_Athletic_Center property:occupant ?m . ?m rdf:type ontology:sports_club }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q14689246
Q847017
USER
And how about McLeod Center?
(Q14689246,P466,c(Q847017))
action filter_type
action find
entity Q14689246
relation P466
type Q847017
['Q14689246', 'P466', {'concept': 'Q847017'}]
SELECT DISTINCT ?u WHERE { resource:Q14689246 property:P466 ?u . ?u rdf:type ontology:Q847017 }
McLeod Center
action filter_type
action find
entity McLeod Center
relation occupant
type sports club
['McLeod Center', 'occupant', {'concept': 'sports club'}]
SELECT DISTINCT ?u WHERE { resource:McLeod_Center property:occupant ?u . ?u rdf:type ontology:sports_club }
[]
sports club
Q7058442
SYSTEM
Northern Iowa Panthers
Q7058442
(Q14689246,P466,c(Q847017))
action filter_type
action find
entity Q14689246
relation P466
type Q847017
[ANSWER]
['Q14689246', 'P466', {'concept': 'Q847017'}]
SELECT DISTINCT ?u WHERE { resource:Q14689246 property:P466 ?u . ?u rdf:type ontology:Q847017 }
Northern Iowa Panthers
Northern Iowa Panthers
action filter_type
action find
entity McLeod Center
relation occupant
type sports club
['McLeod Center', 'occupant', {'concept': 'sports club'}]
SELECT DISTINCT ?u WHERE { resource:McLeod_Center property:occupant ?u . ?u rdf:type ontology:sports_club }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P466
Q811979
USER
How many architectural structures were inhabited by that sports club ?
(c(Q811979),P466,Q7058442)
action count
action filter_type
action find_reverse
entity Q7058442
relation P466
type Q811979
[{'concept': 'Q811979'}, 'P466', 'Q7058442']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { ?u property:P466 resource:Q7058442 . ?u rdf:type ontology:Q811979 }
action count
action filter_type
action find_reverse
entity Northern Iowa Panthers
relation occupant
type architectural structure
[{'concept': 'architectural structure'}, 'occupant', 'Northern Iowa Panthers']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { ?u property:occupant resource:Northern_Iowa_Panthers . ?u rdf:type ontology:architectural_structure }
[]
architectural structure
SYSTEM
1
Q14689246
(c(Q811979),P466,Q7058442)
action count
action filter_type
action find_reverse
entity Q7058442
relation P466
type Q811979
[ANSWER]
[{'concept': 'Q811979'}, 'P466', 'Q7058442']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { ?u property:P466 resource:Q7058442 . ?u rdf:type ontology:Q811979 }
McLeod Center
1
action count
action filter_type
action find_reverse
entity Northern Iowa Panthers
relation occupant
type architectural structure
[{'concept': 'architectural structure'}, 'occupant', 'Northern Iowa Panthers']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { ?u property:occupant resource:Northern_Iowa_Panthers . ?u rdf:type ontology:architectural_structure }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3379270
P19
Q56061
USER
Which administrative territory was Philippe Autier born in ?
(Q3379270,P19,c(Q56061))
action filter_type
action find
entity Q3379270
relation P19
type Q56061
['Q3379270', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3379270 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Philippe Autier
action filter_type
action find
entity Philippe Autier
relation place of birth
type administrative territorial entity
['Philippe Autier', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Philippe_Autier property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q239
SYSTEM
Brussels
Q239
(Q3379270,P19,c(Q56061))
action filter_type
action find
entity Q3379270
relation P19
type Q56061
Philippe Autier was born in [ANSWER]
['Q3379270', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3379270 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Brussels
Philippe Autier was born in Brussels
Brussels
action filter_type
action find
entity Philippe Autier
relation place of birth
type administrative territorial entity
['Philippe Autier', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Philippe_Autier property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3379270
P21
Q290
USER
What is the sex of that person ?
(Q239,P21,c(Q290))
action filter_type
action find
entity Q3379270
relation P21
type Q290
['Q239', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q3379270 property:P21 ?y . ?y rdf:type ontology:Q290 }
Philippe Autier
action filter_type
action find
entity Philippe Autier
relation gender
type sex
['Brussels', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Philippe_Autier property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q239,P21,c(Q290))
action filter_type
action find
entity Q3379270
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q239', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q3379270 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Philippe Autier
relation gender
type sex
['Brussels', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Philippe_Autier property:gender ?y . ?y rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2664128 Q3379270
P27
Q15617994
USER
Which administrative territories are Philippe Autier or Richard Riszdorfer an inhabitant of ?
OR((Q3379270,P27,c(Q15617994)), (Q2664128,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3379270
relation P27
action find
entity Q2664128
relation P27
type Q15617994
{'OR': [['Q3379270', 'P27', {'concept': 'Q15617994'}], ['Q2664128', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q2664128 property:P27 ?v } UNION { resource:Q3379270 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Richard Riszdorfer Philippe Autier
action filter_type
action union
action find
entity Philippe Autier
relation country of citizenship
action find
entity Richard Riszdorfer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Philippe Autier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Richard Riszdorfer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Richard_Riszdorfer property:country_of_citizenship ?v } UNION { resource:Philippe_Autier property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q214
SYSTEM
Belgium, Slovakia
Q31 Q214
OR((Q3379270,P27,c(Q15617994)), (Q2664128,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3379270
relation P27
action find
entity Q2664128
relation P27
type Q15617994
[ANSWERS] are Philippe Autier or Richard Riszdorfer an inhabitant of
{'OR': [['Q3379270', 'P27', {'concept': 'Q15617994'}], ['Q2664128', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q2664128 property:P27 ?v } UNION { resource:Q3379270 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Belgium Slovakia
Belgium and Slovakia are Philippe Autier or Richard Riszdorfer an inhabitant of
Belgium Slovakia
action filter_type
action union
action find
entity Philippe Autier
relation country of citizenship
action find
entity Richard Riszdorfer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Philippe Autier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Richard Riszdorfer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Richard_Riszdorfer property:country_of_citizenship ?v } UNION { resource:Philippe_Autier property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q31
P112
Q180516
USER
Which room was started by that administrative territory ?
(c(Q180516),P112,Q31)
action filter_type
action find_reverse
entity Q31
relation P112
type Q180516
[{'concept': 'Q180516'}, 'P112', 'Q31']
SELECT DISTINCT ?w WHERE { ?w property:P112 resource:Q31 . ?w rdf:type ontology:Q180516 }
Belgium
action filter_type
action find_reverse
entity Belgium
relation founder
type room
[{'concept': 'room'}, 'founder', 'Belgium']
SELECT DISTINCT ?w WHERE { ?w property:founder resource:Belgium . ?w rdf:type ontology:room }
[]
room
Clarification for simple ques.
Q31
SYSTEM
Did you mean Belgium ?
Q31 Q214
(c(Q180516),P112,Q31) (c(Q180516),P112,Q214)
[ANSWER]
[{'concept': 'Q180516'}, 'P112', 'Q31'] [{'concept': 'Q180516'}, 'P112', 'Q214']
SELECT DISTINCT ?w WHERE { ?w property:P112 resource:Q31 . ?w rdf:type ontology:Q180516 }
Belgium Slovakia
Did you mean Belgium ?
Belgium
[{'concept': 'room'}, 'founder', 'Belgium'] [{'concept': 'room'}, 'founder', 'Slovakia']
SELECT DISTINCT ?w WHERE { ?w property:founder resource:Belgium . ?w rdf:type ontology:room }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q180516),P112,Q31)
[{'concept': 'Q180516'}, 'P112', 'Q31']
[{'concept': 'room'}, 'founder', 'Belgium']
[]
Q141720
SYSTEM
European Air Transport Command
Q141720
(c(Q180516),P112,Q31)
action filter_type
action find_reverse
entity Q31
relation P112
type Q180516
[ANSWER] was started by that administrative territory
[{'concept': 'Q180516'}, 'P112', 'Q31']
SELECT DISTINCT ?w WHERE { ?w property:P112 resource:Q31 . ?w rdf:type ontology:Q180516 }
European Air Transport Command
European Air Transport Command was started by that administrative territory
European Air Transport Command
action filter_type
action find_reverse
entity Belgium
relation founder
type room
[{'concept': 'room'}, 'founder', 'Belgium']
SELECT DISTINCT ?w WHERE { ?w property:founder resource:Belgium . ?w rdf:type ontology:room }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q29182
P921
Q12737077 Q838948 Q732577
USER
Which occupations were greater number of works of art or publications mainly about than bishop ?
(c(Q838948)|c(Q732577),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q29182
relation P921
type Q838948
type Q732577
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q732577 } UNION { ?u property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q838948 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:P921 resource:Q29182 . { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } } } } . FILTER ( ?k > ?o ) }
bishop
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity bishop
relation main subject
type work of art
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:main_subject ?h . ?h rdf:type ontology:occupation . ?u rdf:type ontology:publication } UNION { ?u property:main_subject ?h . ?h rdf:type ontology:occupation . ?u rdf:type ontology:work_of_art } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:main_subject resource:bishop . { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:publication ) } } } } . FILTER ( ?k > ?o ) }
[]
occupation work of art publication
Q15637082 Q1930187 Q16746569
SYSTEM
industrialist, journalist, high school student
Q15637082 Q911554 Q39631 Q1124183 Q11631 Q33999 Q36180 Q3809586 Q7358 Q2094335 Q1930187 Q9402 Q2961580 Q101539 Q205375 Q164236 Q936969 Q16746569 Q15320003 Q16003605 Q245068 Q33231 Q2095549 Q1674312 Q16003532
(c(Q838948)|c(Q732577),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q29182
relation P921
type Q838948
type Q732577
The [ANSWERS] were greater number of works of art or publications mainly about than bishop
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q732577 } UNION { ?u property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q838948 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:P921 resource:Q29182 . { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } } } } . FILTER ( ?k > ?o ) }
industrialist business magnate physician lumberjack astronaut actor writer Wikipedian in Residence clown United States Attorney journalist ninja taxi driver flight attendant inventor war correspondent nanny high school student migrant worker elementary school student comedian photographer aviator rag-and-bone man middle school student
The industrialist, journalist and high school student were greater number of works of art or publications mainly about than bishop
industrialist journalist high school student
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity bishop
relation main subject
type work of art
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:main_subject ?h . ?h rdf:type ontology:occupation . ?u rdf:type ontology:publication } UNION { ?u property:main_subject ?h . ?h rdf:type ontology:occupation . ?u rdf:type ontology:work_of_art } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:main_subject resource:bishop . { ?a rdf:type ?d . VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:publication ) } } } } . FILTER ( ?k > ?o ) }
[]