Simple Question (Direct)
Simple Question
Q377557
P106
Q12737077
USER
Which occupations have William Smallwood as his/her 's career ?
(Q377557,P106,c(Q12737077))
action filter_type
action find
entity Q377557
relation P106
type Q12737077
['Q377557', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q377557 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
William Smallwood
action filter_type
action find
entity William Smallwood
relation occupation
type occupation
['William Smallwood', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:William_Smallwood property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q82955 Q189290
SYSTEM
politician, officer
Q82955 Q189290
(Q377557,P106,c(Q12737077))
action filter_type
action find
entity Q377557
relation P106
type Q12737077
The [ANSWERS] have William Smallwood as his/her 's career
['Q377557', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q377557 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
politician officer
The politician and officer have William Smallwood as his/her 's career
politician officer
action filter_type
action find
entity William Smallwood
relation occupation
type occupation
['William Smallwood', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:William_Smallwood property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q82955 Q189290
P39
Q502895
USER
Which people were responsible for occupying the position of politician and officer ?
(c(Q502895),P39,Q82955) (c(Q502895),P39,Q189290)
action union
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
action filter_type
action find_reverse
entity Q189290
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q189290']
SELECT DISTINCT ?t WHERE { { ?t property:P39 resource:Q82955 . ?t rdf:type ontology:Q502895 } UNION { ?t property:P39 resource:Q189290 . ?t rdf:type ontology:Q502895 } }
politician officer
action union
action filter_type
action find_reverse
entity politician
relation position held
type common name
action filter_type
action find_reverse
entity officer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'officer']
SELECT DISTINCT ?t WHERE { { ?t property:position_held resource:politician . ?t rdf:type ontology:common_name } UNION { ?t property:position_held resource:officer . ?t rdf:type ontology:common_name } }
[]
common name
Q26215129 Q562982 Q7527206
SYSTEM
Morteza Azari, Charles de Cossé, Count of Brissac, Sir Henry Puckering, 3rd Baronet
Q26215129 Q562982 Q7527206
(c(Q502895),P39,Q82955) (c(Q502895),P39,Q189290)
action union
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
action filter_type
action find_reverse
entity Q189290
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q189290']
SELECT DISTINCT ?t WHERE { { ?t property:P39 resource:Q82955 . ?t rdf:type ontology:Q502895 } UNION { ?t property:P39 resource:Q189290 . ?t rdf:type ontology:Q502895 } }
Morteza Azari Charles de Cossé, Count of Brissac Sir Henry Puckering, 3rd Baronet
Morteza Azari, Charles de Cossé, Count of Brissac and Sir Henry Puckering, 3rd Baronet were responsible for occupying the position of politician and officer
Morteza Azari Charles de Cossé, Count of Brissac Sir Henry Puckering, 3rd Baronet
action union
action filter_type
action find_reverse
entity politician
relation position held
type common name
action filter_type
action find_reverse
entity officer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'officer']
SELECT DISTINCT ?t WHERE { { ?t property:position_held resource:politician . ?t rdf:type ontology:common_name } UNION { ?t property:position_held resource:officer . ?t rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q26215129 Q562982 Q7527206
P39
Q12737077
USER
What were the positions held by Morteza Azari, Charles de Cossé, Count of Brissac and Sir Henry Puckering, 3rd Baronet ?
(Q26215129,P39,c(Q12737077)) (Q562982,P39,c(Q12737077)) (Q7527206,P39,c(Q12737077))
action union
action filter_type
action find
entity Q26215129
relation P39
type Q12737077
action filter_type
action find
entity Q562982
relation P39
type Q12737077
action filter_type
action find
entity Q7527206
relation P39
type Q12737077
['Q26215129', 'P39', {'concept': 'Q12737077'}] ['Q562982', 'P39', {'concept': 'Q12737077'}] ['Q7527206', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { resource:Q26215129 property:P39 ?c . ?c rdf:type ontology:Q12737077 } UNION { resource:Q562982 property:P39 ?c . ?c rdf:type ontology:Q12737077 } }
Morteza Azari Charles de Cossé, Count of Brissac Sir Henry Puckering, 3rd Baronet
action union
action filter_type
action find
entity Morteza Azari
relation position held
type occupation
action filter_type
action find
entity Charles de Cossé, Count of Brissac
relation position held
type occupation
action filter_type
action find
entity Sir Henry Puckering, 3rd Baronet
relation position held
type occupation
['Morteza Azari', 'position held', {'concept': 'occupation'}] ['Charles de Cossé, Count of Brissac', 'position held', {'concept': 'occupation'}] ['Sir Henry Puckering, 3rd Baronet', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { resource:Morteza_Azari property:position_held ?c . ?c rdf:type ontology:occupation } UNION { resource:Charles_de_Cossé,_Count_of_Brissac property:position_held ?c . ?c rdf:type ontology:occupation } }
[]
occupation
Q18018860 Q1234713 Q82955
SYSTEM
Member of Parliament in the Parliament of England, theologian, politician
Q1234713 Q82955 Q333634 Q15995642 Q17575128 Q189290 Q18018860 Q189290
(Q26215129,P39,c(Q12737077)) (Q562982,P39,c(Q12737077)) (Q7527206,P39,c(Q12737077))
action union
action filter_type
action find
entity Q26215129
relation P39
type Q12737077
action filter_type
action find
entity Q562982
relation P39
type Q12737077
action filter_type
action find
entity Q7527206
relation P39
type Q12737077
The positions held by Morteza Azari , Charles de Cossé , Count of Brissac and Sir Henry Puckering , 3rd Baronet were [ANSWERS]
['Q26215129', 'P39', {'concept': 'Q12737077'}] ['Q562982', 'P39', {'concept': 'Q12737077'}] ['Q7527206', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { resource:Q26215129 property:P39 ?c . ?c rdf:type ontology:Q12737077 } UNION { resource:Q562982 property:P39 ?c . ?c rdf:type ontology:Q12737077 } }
theologian politician translator religious leader grand ayatollah officer Member of Parliament in the Parliament of England officer
The positions held by Morteza Azari , Charles de Cossé , Count of Brissac and Sir Henry Puckering , 3rd Baronet were Member of Parliament in the Parliament of England, theologian and politician
Member of Parliament in the Parliament of England theologian politician
action union
action filter_type
action find
entity Morteza Azari
relation position held
type occupation
action filter_type
action find
entity Charles de Cossé, Count of Brissac
relation position held
type occupation
action filter_type
action find
entity Sir Henry Puckering, 3rd Baronet
relation position held
type occupation
['Morteza Azari', 'position held', {'concept': 'occupation'}] ['Charles de Cossé, Count of Brissac', 'position held', {'concept': 'occupation'}] ['Sir Henry Puckering, 3rd Baronet', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { resource:Morteza_Azari property:position_held ?c . ?c rdf:type ontology:occupation } UNION { resource:Charles_de_Cossé,_Count_of_Brissac property:position_held ?c . ?c rdf:type ontology:occupation } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q377557
P21
Q290
USER
What is the sex of William Smallwood ?
(Q377557,P21,c(Q290))
action filter_type
action find
entity Q377557
relation P21
type Q290
['Q377557', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q377557 property:P21 ?u . ?u rdf:type ontology:Q290 }
William Smallwood
action filter_type
action find
entity William Smallwood
relation gender
type sex
['William Smallwood', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:William_Smallwood property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q377557,P21,c(Q290))
action filter_type
action find
entity Q377557
relation P21
type Q290
The sex of William Smallwood is a [ANSWER]
['Q377557', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q377557 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
The sex of William Smallwood is a male
male
action filter_type
action find
entity William Smallwood
relation gender
type sex
['William Smallwood', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:William_Smallwood property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q377557
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q377557
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q377557 property:P27 ?z }
William Smallwood
action filter_type
action find
entity William Smallwood
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:William_Smallwood property:country_of_citizenship ?z }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q377557
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q377557 property:P27 ?z }
United States of America
The United States of America is the country of citizenship of that person
United States of America
action filter_type
action find
entity William Smallwood
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:William_Smallwood property:country_of_citizenship ?z }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1000098 Q377557
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof William Smallwood or do Shizunai belong to ?
OR((Q377557,P27,c(Q15617994)), (Q1000098,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q377557
relation P27
action find
entity Q1000098
relation P17
type Q15617994
{'OR': [['Q377557', 'P27', {'concept': 'Q15617994'}], ['Q1000098', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q377557 property:P27 ?j } UNION { resource:Q1000098 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Shizunai William Smallwood
action filter_type
action union
action find
entity William Smallwood
relation country of citizenship
action find
entity Shizunai
relation country
type designation for an administrative territorial entity
{'OR': [['William Smallwood', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Shizunai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:William_Smallwood property:country_of_citizenship ?j } UNION { resource:Shizunai property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q30
SYSTEM
Japan, United States of America
Q17 Q30
OR((Q377557,P27,c(Q15617994)), (Q1000098,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q377557
relation P27
action find
entity Q1000098
relation P17
type Q15617994
[ANSWERS] are the native countriesof William Smallwood or do Shizunai belong to
{'OR': [['Q377557', 'P27', {'concept': 'Q15617994'}], ['Q1000098', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q377557 property:P27 ?j } UNION { resource:Q1000098 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Japan United States of America
Japan and United States of America are the native countriesof William Smallwood or do Shizunai belong to
Japan United States of America
action filter_type
action union
action find
entity William Smallwood
relation country of citizenship
action find
entity Shizunai
relation country
type designation for an administrative territorial entity
{'OR': [['William Smallwood', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Shizunai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:William_Smallwood property:country_of_citizenship ?j } UNION { resource:Shizunai property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2095549
P921
Q12737077 Q838948 Q191067
USER
How many occupations were lesser number of works of art and articles mainly about than aviator ?
(c(Q838948)|c(Q191067),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q2095549
relation P921
type Q838948
type Q191067
[[{'concept': 'Q838948'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?k WHERE { { ?c property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q191067 . ?k rdf:type ontology:Q12737077 . ?c property:P921 ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P921 resource:Q2095549 . { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q191067 ) } . ?r rdf:type ?o } } } . FILTER ( ?j < ?s ) }
aviator
action count
action less
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 article
action count
action filter_multi_types
action find_reverse
entity aviator
relation main subject
type work of art
type article
[[{'concept': 'work of art'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?k WHERE { { ?c property:main_subject ?k . ?k rdf:type ontology:occupation . ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:article . ?k rdf:type ontology:occupation . ?c property:main_subject ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:main_subject resource:aviator . { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:article ) } . ?r rdf:type ?o } } } . FILTER ( ?j < ?s ) }
[]
occupation work of art article
SYSTEM
73
Q9045502 Q2666591 Q5185440 Q765778 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q43845 Q14128148 Q814356 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q372436 Q1238570 Q2259532 Q361593 Q1856798 Q16707842
(c(Q838948)|c(Q191067),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q2095549
relation P921
type Q838948
type Q191067
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?k WHERE { { ?c property:P921 ?k . ?k rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q191067 . ?k rdf:type ontology:Q12737077 . ?c property:P921 ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P921 resource:Q2095549 . { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q191067 ) } . ?r rdf:type ?o } } } . FILTER ( ?j < ?s ) }
member of the Parliament of Norway Chair of the Federal Reserve Crime scene cleanup organist surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives 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 classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate businessperson gridiron football player call girl political commissar double agent member of the Lok Sabha soldier bishop member of parliament violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor peasant missionary United States federal judge musician poet medical examiner police officer statesman political scientist cleric police officer baseball umpire Member of Parliament in the United Kingdom
73
action count
action less
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 article
action count
action filter_multi_types
action find_reverse
entity aviator
relation main subject
type work of art
type article
[[{'concept': 'work of art'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?k WHERE { { ?c property:main_subject ?k . ?k rdf:type ontology:occupation . ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:article . ?k rdf:type ontology:occupation . ?c property:main_subject ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:main_subject resource:aviator . { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:article ) } . ?r rdf:type ?o } } } . FILTER ( ?j < ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q182436
P921
Q12737077 Q838948 Q191067
USER
And also tell me about librarian?
(c(Q838948)|c(Q191067),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q182436
relation P921
type Q838948
type Q191067
[[{'concept': 'Q838948'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q191067 ) } } GROUP BY ?c } . FILTER ( ?t < ?m ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { ?n property:P921 resource:Q182436 . { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q191067 } } } } }
librarian
action count
action less
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 article
action count
action filter_multi_types
action find_reverse
entity librarian
relation main subject
type work of art
type article
[[{'concept': 'work of art'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:article ) } } GROUP BY ?c } . FILTER ( ?t < ?m ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { ?n property:main_subject resource:librarian . { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:article } } } } }
[]
occupation work of art article
SYSTEM
73
Q9045502 Q2666591 Q5185440 Q765778 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q43845 Q14128148 Q814356 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q372436 Q1238570 Q2259532 Q361593 Q1856798 Q16707842
(c(Q838948)|c(Q191067),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q182436
relation P921
type Q838948
type Q191067
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q191067 ) } } GROUP BY ?c } . FILTER ( ?t < ?m ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { ?n property:P921 resource:Q182436 . { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q191067 } } } } }
member of the Parliament of Norway Chair of the Federal Reserve Crime scene cleanup organist surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives 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 classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate businessperson gridiron football player call girl political commissar double agent member of the Lok Sabha soldier bishop member of parliament violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor peasant missionary United States federal judge musician poet medical examiner police officer statesman political scientist cleric police officer baseball umpire Member of Parliament in the United Kingdom
73
action count
action less
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 article
action count
action filter_multi_types
action find_reverse
entity librarian
relation main subject
type work of art
type article
[[{'concept': 'work of art'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:article ) } } GROUP BY ?c } . FILTER ( ?t < ?m ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { ?n property:main_subject resource:librarian . { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:article } } } } }
[]