Simple Question (Direct)
Simple Question
Q2729932
P937
Q56061
USER
Which administrative territory is the work location of Sir John Wood, 1st Baronet ?
(Q2729932,P937,c(Q56061))
action filter_type
action find
entity Q2729932
relation P937
type Q56061
['Q2729932', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q2729932 property:P937 ?u . ?u rdf:type ontology:Q56061 }
Sir John Wood, 1st Baronet
action filter_type
action find
entity Sir John Wood, 1st Baronet
relation work location
type administrative territorial entity
['Sir John Wood, 1st Baronet', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Sir_John_Wood,_1st_Baronet property:work_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q2729932,P937,c(Q56061))
action filter_type
action find
entity Q2729932
relation P937
type Q56061
[ANSWER] is the work location of Sir John Wood, 1st Baronet
['Q2729932', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q2729932 property:P937 ?u . ?u rdf:type ontology:Q56061 }
London
London is the work location of Sir John Wood, 1st Baronet
London
action filter_type
action find
entity Sir John Wood, 1st Baronet
relation work location
type administrative territorial entity
['Sir John Wood, 1st Baronet', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Sir_John_Wood,_1st_Baronet property:work_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2729932
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q84,P39,c(Q12737077))
action filter_type
action find
entity Q2729932
relation P39
type Q12737077
['Q84', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q2729932 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Sir John Wood, 1st Baronet
action filter_type
action find
entity Sir John Wood, 1st Baronet
relation position held
type occupation
['London', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Sir_John_Wood,_1st_Baronet property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q84,P39,c(Q12737077))
action filter_type
action find
entity Q2729932
relation P39
type Q12737077
The [ANSWER] was a position held by that person
['Q84', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q2729932 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by that person
Member of Parliament in the United Kingdom
action filter_type
action find
entity Sir John Wood, 1st Baronet
relation position held
type occupation
['London', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Sir_John_Wood,_1st_Baronet property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P921
Q12737077 Q838948 Q732577
USER
How many occupations were more number of works of art and publications mainly about than that occupation ?
(c(Q838948)|c(Q732577),P921,c(Q12737077))
action count
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 Q16707842
relation P921
type Q838948
type Q732577
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?s WHERE { VALUES ( ?r ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } . ?x rdf:type ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b property:P921 resource:Q16707842 . { { ?b rdf:type ontology:Q838948 } UNION { ?b rdf:type ontology:Q732577 } } } } . FILTER ( ?m > ?k ) }
action count
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 Member of Parliament in the United Kingdom
relation main subject
type work of art
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?s WHERE { VALUES ( ?r ) { ( ontology:work_of_art ) ( ontology:publication ) } . ?x rdf:type ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b property:main_subject resource:Member_of_Parliament_in_the_United_Kingdom . { { ?b rdf:type ontology:work_of_art } UNION { ?b rdf:type ontology:publication } } } } . FILTER ( ?m > ?k ) }
[]
occupation work of art publication
SYSTEM
25
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 count
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 Q16707842
relation P921
type Q838948
type Q732577
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?s WHERE { VALUES ( ?r ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } . ?x rdf:type ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b property:P921 resource:Q16707842 . { { ?b rdf:type ontology:Q838948 } UNION { ?b rdf:type ontology:Q732577 } } } } . FILTER ( ?m > ?k ) }
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
25
action count
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 Member of Parliament in the United Kingdom
relation main subject
type work of art
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?s WHERE { VALUES ( ?r ) { ( ontology:work_of_art ) ( ontology:publication ) } . ?x rdf:type ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b property:main_subject resource:Member_of_Parliament_in_the_United_Kingdom . { { ?b rdf:type ontology:work_of_art } UNION { ?b rdf:type ontology:publication } } } } . FILTER ( ?m > ?k ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2729932
P102
Q7210356
USER
Which party is Sir John Wood, 1st Baronet affiliated with ?
(Q2729932,P102,c(Q7210356))
action filter_type
action find
entity Q2729932
relation P102
type Q7210356
['Q2729932', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q2729932 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Sir John Wood, 1st Baronet
action filter_type
action find
entity Sir John Wood, 1st Baronet
relation member of political party
type political organization
['Sir John Wood, 1st Baronet', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Sir_John_Wood,_1st_Baronet property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q2729932,P102,c(Q7210356))
action filter_type
action find
entity Q2729932
relation P102
type Q7210356
Sir John Wood , 1st Baronet is affiliated with the [ANSWER]
['Q2729932', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q2729932 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Conservative Party
Sir John Wood , 1st Baronet is affiliated with the Conservative Party
Conservative Party
action filter_type
action find
entity Sir John Wood, 1st Baronet
relation member of political party
type political organization
['Sir John Wood, 1st Baronet', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Sir_John_Wood,_1st_Baronet property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9626
P361
Q12737077
USER
Which occupation is a part of that political organization ?
(c(Q12737077),P361,Q9626)
action filter_type
action find_reverse
entity Q9626
relation P361
type Q12737077
[{'concept': 'Q12737077'}, 'P361', 'Q9626']
SELECT DISTINCT ?k WHERE { ?k property:P361 resource:Q9626 . ?k rdf:type ontology:Q12737077 }
Conservative Party
action filter_type
action find_reverse
entity Conservative Party
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'Conservative Party']
SELECT DISTINCT ?k WHERE { ?k property:part_of resource:Conservative_Party . ?k rdf:type ontology:occupation }
[]
occupation
Q3303456
SYSTEM
Leader of the Conservative Party
Q3303456
(c(Q12737077),P361,Q9626)
action filter_type
action find_reverse
entity Q9626
relation P361
type Q12737077
[ANSWER] is a part of that political organization
[{'concept': 'Q12737077'}, 'P361', 'Q9626']
SELECT DISTINCT ?k WHERE { ?k property:P361 resource:Q9626 . ?k rdf:type ontology:Q12737077 }
Leader of the Conservative Party
Leader of the Conservative Party is a part of that political organization
Leader of the Conservative Party
action filter_type
action find_reverse
entity Conservative Party
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'Conservative Party']
SELECT DISTINCT ?k WHERE { ?k property:part_of resource:Conservative_Party . ?k rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3303456 Q1964561
P17
Q15617994
USER
Is Leader of the Conservative Party located in Lyublino, Kaliningrad Oblast ?
(Q3303456,P17,Q1964561)
action is_in
entity Q1964561
action find
entity Q3303456
relation P17
['Q3303456', 'P17', 'Q1964561']
ASK WHERE { resource:Q3303456 property:P17 resource:Q1964561 }
Leader of the Conservative Party Lyublino, Kaliningrad Oblast
action is_in
entity Lyublino, Kaliningrad Oblast
action find
entity Leader of the Conservative Party
relation country
['Leader of the Conservative Party', 'country', 'Lyublino, Kaliningrad Oblast']
ASK WHERE { resource:Leader_of_the_Conservative_Party property:country resource:Lyublino,_Kaliningrad_Oblast }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3303456,P17,Q1964561)
action is_in
entity Q1964561
action find
entity Q3303456
relation P17
[ANSWER]
['Q3303456', 'P17', 'Q1964561']
ASK WHERE { resource:Q3303456 property:P17 resource:Q1964561 }
No
action is_in
entity Lyublino, Kaliningrad Oblast
action find
entity Leader of the Conservative Party
relation country
['Leader of the Conservative Party', 'country', 'Lyublino, Kaliningrad Oblast']
ASK WHERE { resource:Leader_of_the_Conservative_Party property:country resource:Lyublino,_Kaliningrad_Oblast }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q84 Q5790004 Q15045641
P190
Q56061
USER
Is London twin city of Dastuiyeh and Ndiaini ?
(Q84,P190,Q5790004) (Q84,P190,Q15045641)
action is_in
entity Q84
action intersection
action find_reverse
entity Q5790004
relation P190
action find_reverse
entity Q15045641
relation P190
['Q84', 'P190', 'Q5790004'] ['Q84', 'P190', 'Q15045641']
ASK WHERE { resource:Q84 property:P190 resource:Q5790004 . resource:Q84 property:P190 resource:Q15045641 }
London Dastuiyeh Ndiaini
action is_in
entity London
action intersection
action find_reverse
entity Dastuiyeh
relation sister city
action find_reverse
entity Ndiaini
relation sister city
['London', 'sister city', 'Dastuiyeh'] ['London', 'sister city', 'Ndiaini']
ASK WHERE { resource:London property:sister_city resource:Dastuiyeh . resource:London property:sister_city resource:Ndiaini }
[]
administrative territorial entity
SYSTEM
NO
(Q84,P190,Q5790004) (Q84,P190,Q15045641)
action is_in
entity Q84
action intersection
action find_reverse
entity Q5790004
relation P190
action find_reverse
entity Q15045641
relation P190
[ANSWER]
['Q84', 'P190', 'Q5790004'] ['Q84', 'P190', 'Q15045641']
ASK WHERE { resource:Q84 property:P190 resource:Q5790004 . resource:Q84 property:P190 resource:Q15045641 }
No
action is_in
entity London
action intersection
action find_reverse
entity Dastuiyeh
relation sister city
action find_reverse
entity Ndiaini
relation sister city
['London', 'sister city', 'Dastuiyeh'] ['London', 'sister city', 'Ndiaini']
ASK WHERE { resource:London property:sister_city resource:Dastuiyeh . resource:London property:sister_city resource:Ndiaini }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q14373094
P921
Q12737077 Q191067 Q2342494
USER
How many occupations were the main subjects of less number of articles and collectables 's work than rugby league player ?
(c(Q191067)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q14373094
relation P921
type Q191067
type Q2342494
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?m ) WHERE { { ?b property:P921 ?c . ?b rdf:type ontology:Q191067 . ?c rdf:type ontology:Q12737077 } UNION { ?b property:P921 ?c . ?c rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q2342494 } } GROUP BY ?c } . FILTER ( ?m < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P921 resource:Q14373094 . { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:Q191067 ) ( ontology:Q2342494 ) } } } } }
rugby league player
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity rugby league player
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?m ) WHERE { { ?b property:main_subject ?c . ?b rdf:type ontology:article . ?c rdf:type ontology:occupation } UNION { ?b property:main_subject ?c . ?c rdf:type ontology:occupation . ?b rdf:type ontology:collectable } } GROUP BY ?c } . FILTER ( ?m < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:main_subject resource:rugby_league_player . { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:article ) ( ontology:collectable ) } } } } }
[]
occupation article collectable
SYSTEM
74
Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q3809586 Q3315094 Q622807 Q7358 Q131512 Q1708232 Q2094335 Q842782 Q378622 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q486839 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q17143199 Q384593 Q2095549 Q372436 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q191067)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q14373094
relation P921
type Q191067
type Q2342494
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?m ) WHERE { { ?b property:P921 ?c . ?b rdf:type ontology:Q191067 . ?c rdf:type ontology:Q12737077 } UNION { ?b property:P921 ?c . ?c rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q2342494 } } GROUP BY ?c } . FILTER ( ?m < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P921 resource:Q14373094 . { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:Q191067 ) ( ontology:Q2342494 ) } } } } }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer Wikipedian in Residence Prime Minister of Hungary seiyū clown farmer medallist United States Attorney detective racing driver 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 candidate taxi driver gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier member of parliament violist Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil artist cartoonist judge nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor comedian photographer peasant missionary United States federal judge musician medical examiner police officer aviator statesman rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
74
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity rugby league player
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?b ) AS ?m ) WHERE { { ?b property:main_subject ?c . ?b rdf:type ontology:article . ?c rdf:type ontology:occupation } UNION { ?b property:main_subject ?c . ?c rdf:type ontology:occupation . ?b rdf:type ontology:collectable } } GROUP BY ?c } . FILTER ( ?m < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:main_subject resource:rugby_league_player . { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:article ) ( ontology:collectable ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q182436
P921
Q12737077 Q191067 Q2342494
USER
And also tell me about librarian?
(c(Q191067)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q182436
relation P921
type Q191067
type Q2342494
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) ?p WHERE { VALUES ( ?w ) { ( ontology:Q191067 ) ( ontology:Q2342494 ) } . ?i rdf:type ?w } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?x property:P921 resource:Q182436 . { { ?x rdf:type ontology:Q191067 } UNION { ?x rdf:type ontology:Q2342494 } } } } . FILTER ( ?e < ?c ) }
librarian
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity librarian
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) ?p WHERE { VALUES ( ?w ) { ( ontology:article ) ( ontology:collectable ) } . ?i rdf:type ?w } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?x property:main_subject resource:librarian . { { ?x rdf:type ontology:article } UNION { ?x rdf:type ontology:collectable } } } } . FILTER ( ?e < ?c ) }
[]
occupation article collectable
SYSTEM
74
Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q3809586 Q3315094 Q622807 Q7358 Q131512 Q1708232 Q2094335 Q842782 Q378622 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q486839 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q17143199 Q384593 Q2095549 Q372436 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q191067)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q182436
relation P921
type Q191067
type Q2342494
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) ?p WHERE { VALUES ( ?w ) { ( ontology:Q191067 ) ( ontology:Q2342494 ) } . ?i rdf:type ?w } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?x property:P921 resource:Q182436 . { { ?x rdf:type ontology:Q191067 } UNION { ?x rdf:type ontology:Q2342494 } } } } . FILTER ( ?e < ?c ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer Wikipedian in Residence Prime Minister of Hungary seiyū clown farmer medallist United States Attorney detective racing driver 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 candidate taxi driver gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier member of parliament violist Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil artist cartoonist judge nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor comedian photographer peasant missionary United States federal judge musician medical examiner police officer aviator statesman rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
74
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity librarian
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) ?p WHERE { VALUES ( ?w ) { ( ontology:article ) ( ontology:collectable ) } . ?i rdf:type ?w } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { ?x property:main_subject resource:librarian . { { ?x rdf:type ontology:article } UNION { ?x rdf:type ontology:collectable } } } } . FILTER ( ?e < ?c ) }
[]