Simple Question (Direct)
Simple Question
Q3332144
P102
Q7210356
USER
Which political organization is John H. Ray a member of ?
(Q3332144,P102,c(Q7210356))
action filter_type
action find
entity Q3332144
relation P102
type Q7210356
['Q3332144', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q3332144 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
John H. Ray
action filter_type
action find
entity John H. Ray
relation member of political party
type political organization
['John H. Ray', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:John_H._Ray property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q3332144,P102,c(Q7210356))
action filter_type
action find
entity Q3332144
relation P102
type Q7210356
The [ANSWER] is John H. Ray a member of
['Q3332144', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q3332144 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Republican Party
The Republican Party is John H. Ray a member of
Republican Party
action filter_type
action find
entity John H. Ray
relation member of political party
type political organization
['John H. Ray', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:John_H._Ray property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29468
P463
Q502895
USER
Which person has a membership of that political organization ?
(c(Q502895),P463,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q29468']
SELECT DISTINCT ?o WHERE { ?o property:P463 resource:Q29468 . ?o rdf:type ontology:Q502895 }
Republican Party
action filter_type
action find_reverse
entity Republican Party
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Republican Party']
SELECT DISTINCT ?o WHERE { ?o property:member_of resource:Republican_Party . ?o rdf:type ontology:common_name }
[]
common name
Q2522486
SYSTEM
Victor Murdock
Q2522486
(c(Q502895),P463,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P463
type Q502895
[ANSWER] has a membership of that political organization
[{'concept': 'Q502895'}, 'P463', 'Q29468']
SELECT DISTINCT ?o WHERE { ?o property:P463 resource:Q29468 . ?o rdf:type ontology:Q502895 }
Victor Murdock
Victor Murdock has a membership of that political organization
Victor Murdock
action filter_type
action find_reverse
entity Republican Party
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Republican Party']
SELECT DISTINCT ?o WHERE { ?o property:member_of resource:Republican_Party . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q838948
USER
Which works of art had max number of people as the dubbing artist ?
(c(Q838948),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q838948
type Q502895
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?e ) WHERE { ?l property:P725 ?v . ?v rdf:type ontology:Q502895 . ?l rdf:type ontology:Q838948 } GROUP BY ?l } } . { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?o ) WHERE { ?b property:P725 ?i . ?b rdf:type ontology:Q838948 . ?i rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?o = ?d ) }
action argmax
action find_tuple_counts
relation voice actor
type work of art
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?e ) WHERE { ?l property:voice_actor ?v . ?v rdf:type ontology:common_name . ?l rdf:type ontology:work_of_art } GROUP BY ?l } } . { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?o ) WHERE { ?b property:voice_actor ?i . ?b rdf:type ontology:work_of_art . ?i rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?o = ?d ) }
[]
common name work of art
Q19263748
SYSTEM
The Anthem of the Heart
Q19263748
(c(Q838948),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q838948
type Q502895
[ANSWER] had max number of people as the dubbing artist
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?e ) WHERE { ?l property:P725 ?v . ?v rdf:type ontology:Q502895 . ?l rdf:type ontology:Q838948 } GROUP BY ?l } } . { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?o ) WHERE { ?b property:P725 ?i . ?b rdf:type ontology:Q838948 . ?i rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?o = ?d ) }
The Anthem of the Heart
The Anthem of the Heart had max number of people as the dubbing artist
The Anthem of the Heart
action argmax
action find_tuple_counts
relation voice actor
type work of art
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?e ) WHERE { ?l property:voice_actor ?v . ?v rdf:type ontology:common_name . ?l rdf:type ontology:work_of_art } GROUP BY ?l } } . { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?o ) WHERE { ?b property:voice_actor ?i . ?b rdf:type ontology:work_of_art . ?i rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?o = ?d ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P2079
Q2695280 Q838948
USER
Which technicss are used for the assembly of exactly 1 work of art ?
(c(Q838948),P2079,c(Q2695280))
action equal
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
value 1
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:P2079 ?d . ?d rdf:type ontology:Q2695280 . ?w rdf:type ontology:Q838948 } GROUP BY ?d } . FILTER ( ?s = 1 ) }
action equal
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
value 1
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:fabrication_method ?d . ?d rdf:type ontology:technics . ?w rdf:type ontology:work_of_art } GROUP BY ?d } . FILTER ( ?s = 1 ) }
[]
technics work of art
Q1334300 Q170593
SYSTEM
gilding, collage
Q1334300 Q170593
(c(Q838948),P2079,c(Q2695280))
action equal
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
value 1
[ANSWERS] are used for the assembly of exactly 1 work of art
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:P2079 ?d . ?d rdf:type ontology:Q2695280 . ?w rdf:type ontology:Q838948 } GROUP BY ?d } . FILTER ( ?s = 1 ) }
gilding collage
Gilding and collage are used for the assembly of exactly 1 work of art
gilding collage
action equal
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
value 1
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:fabrication_method ?d . ?d rdf:type ontology:technics . ?w rdf:type ontology:work_of_art } GROUP BY ?d } . FILTER ( ?s = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q170593
P2079
Q2695280 Q838948
USER
How many technicss are used for fabrication of lesser number of works of art than collage ?
(c(Q838948),P2079,c(Q2695280))
action count
action less
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find_reverse
entity Q170593
relation P2079
type Q838948
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { FILTER ( ?e < ?o ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P2079 resource:Q170593 . ?g rdf:type ontology:Q838948 } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:P2079 ?m . ?m rdf:type ontology:Q2695280 . ?p rdf:type ontology:Q838948 } GROUP BY ?m } }
collage
action count
action less
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find_reverse
entity collage
relation fabrication method
type work of art
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { FILTER ( ?e < ?o ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:fabrication_method resource:collage . ?g rdf:type ontology:work_of_art } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:fabrication_method ?m . ?m rdf:type ontology:technics . ?p rdf:type ontology:work_of_art } GROUP BY ?m } }
[]
technics work of art
SYSTEM
10
Q11750728 Q9363879 Q173242 Q204867 Q192047 Q752633 Q26265824 Q139106 Q133036 Q2657271
(c(Q838948),P2079,c(Q2695280))
action count
action less
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find_reverse
entity Q170593
relation P2079
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { FILTER ( ?e < ?o ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P2079 resource:Q170593 . ?g rdf:type ontology:Q838948 } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:P2079 ?m . ?m rdf:type ontology:Q2695280 . ?p rdf:type ontology:Q838948 } GROUP BY ?m } }
Punching stamping woodcut technique zincography machining linocut technique chasing engraving lithography silvering
10
action count
action less
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find_reverse
entity collage
relation fabrication method
type work of art
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { FILTER ( ?e < ?o ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:fabrication_method resource:collage . ?g rdf:type ontology:work_of_art } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:fabrication_method ?m . ?m rdf:type ontology:technics . ?p rdf:type ontology:work_of_art } GROUP BY ?m } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q170593
P101
Q502895
USER
Which people have his/her area as collage ?
(c(Q502895),P101,Q170593)
action filter_type
action find_reverse
entity Q170593
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q170593']
SELECT DISTINCT ?w WHERE { ?w property:P101 resource:Q170593 . ?w rdf:type ontology:Q502895 }
collage
action filter_type
action find_reverse
entity collage
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'collage']
SELECT DISTINCT ?w WHERE { ?w property:field_of_work resource:collage . ?w rdf:type ontology:common_name }
[]
common name
Q3159195 Q3476652
SYSTEM
Jacques Jouet, Sea Diallo
Q3159195 Q3476652
(c(Q502895),P101,Q170593)
action filter_type
action find_reverse
entity Q170593
relation P101
type Q502895
[ANSWERS] have his/her area as collage
[{'concept': 'Q502895'}, 'P101', 'Q170593']
SELECT DISTINCT ?w WHERE { ?w property:P101 resource:Q170593 . ?w rdf:type ontology:Q502895 }
Jacques Jouet Sea Diallo
Jacques Jouet and Sea Diallo have his/her area as collage
Jacques Jouet Sea Diallo
action filter_type
action find_reverse
entity collage
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'collage']
SELECT DISTINCT ?w WHERE { ?w property:field_of_work resource:collage . ?w rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3476652
P135
Q2198855
USER
Which cultural movement did that person belong to
(Q3476652,P135,c(Q2198855))
action filter_type
action find
entity Q3476652
relation P135
type Q2198855
['Q3476652', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ?l WHERE { resource:Q3476652 property:P135 ?l . ?l rdf:type ontology:Q2198855 }
Sea Diallo
action filter_type
action find
entity Sea Diallo
relation movement
type cultural movement
['Sea Diallo', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ?l WHERE { resource:Sea_Diallo property:movement ?l . ?l rdf:type ontology:cultural_movement }
[]
cultural movement
Clarification for simple ques.
Q3159195
SYSTEM
Did you mean Jacques Jouet ?
Q3159195 Q3476652
(Q3159195,P135,c(Q2198855)) (Q3476652,P135,c(Q2198855))
[ANSWER]
['Q3159195', 'P135', {'concept': 'Q2198855'}] ['Q3476652', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ?l WHERE { resource:Q3476652 property:P135 ?l . ?l rdf:type ontology:Q2198855 }
Jacques Jouet Sea Diallo
Did you mean Jacques Jouet ?
Jacques Jouet
['Jacques Jouet', 'movement', {'concept': 'cultural movement'}] ['Sea Diallo', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ?l WHERE { resource:Sea_Diallo property:movement ?l . ?l rdf:type ontology:cultural_movement }
[]
Simple Question (Coreferenced)
USER
No, I meant Sea Diallo. Could you tell me the answer for that?
(Q3476652,P135,c(Q2198855))
Q3476652
['Q3476652', 'P135', {'concept': 'Q2198855'}]
['Sea Diallo', 'movement', {'concept': 'cultural movement'}]
[]
Q3577793
SYSTEM
École de Dakar
Q3577793
(Q3476652,P135,c(Q2198855))
action filter_type
action find
entity Q3476652
relation P135
type Q2198855
That person belonged to [ANSWER]
['Q3476652', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ?l WHERE { resource:Q3476652 property:P135 ?l . ?l rdf:type ontology:Q2198855 }
École de Dakar
That person belonged to École de Dakar
École de Dakar
action filter_type
action find
entity Sea Diallo
relation movement
type cultural movement
['Sea Diallo', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ?l WHERE { resource:Sea_Diallo property:movement ?l . ?l rdf:type ontology:cultural_movement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3476652
P106
Q12737077
USER
Which occupation has Sea Diallo as his/her 's career ?
(Q3476652,P106,c(Q12737077))
action filter_type
action find
entity Q3476652
relation P106
type Q12737077
['Q3476652', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q3476652 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Sea Diallo
action filter_type
action find
entity Sea Diallo
relation occupation
type occupation
['Sea Diallo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Sea_Diallo property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q1028181
SYSTEM
painter
Q1028181
(Q3476652,P106,c(Q12737077))
action filter_type
action find
entity Q3476652
relation P106
type Q12737077
The [ANSWER] has Sea Diallo as his/her 's career
['Q3476652', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q3476652 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
painter
The painter has Sea Diallo as his/her 's career
painter
action filter_type
action find
entity Sea Diallo
relation occupation
type occupation
['Sea Diallo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Sea_Diallo property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2627916
Q12737077
USER
And also tell me about Ulpiano Checa?
(Q2627916,P106,c(Q12737077))
action filter_type
action find
entity Q2627916
relation P106
type Q12737077
['Q2627916', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q2627916 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Ulpiano Checa
action filter_type
action find
entity Ulpiano Checa
relation occupation
type occupation
['Ulpiano Checa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Ulpiano_Checa property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q1028181 Q627325 Q1281618
SYSTEM
painter, graphic designer, sculptor
Q1028181 Q627325 Q1281618
(Q2627916,P106,c(Q12737077))
action filter_type
action find
entity Q2627916
relation P106
type Q12737077
[ANSWERS]
['Q2627916', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q2627916 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
painter graphic designer sculptor
painter graphic designer sculptor
action filter_type
action find
entity Ulpiano Checa
relation occupation
type occupation
['Ulpiano Checa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Ulpiano_Checa property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q911554
P921
Q12737077 Q191067 Q838948
USER
How many occupations were the main subjects of lesser number of articles and works of art 's work than business magnate ?
(c(Q191067)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q911554
relation P921
type Q191067
type Q838948
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r property:P921 resource:Q911554 . { { ?r rdf:type ontology:Q191067 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?j < ?v ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?i WHERE { { ?q property:P921 ?i . ?q rdf:type ontology:Q191067 . ?i rdf:type ontology:Q12737077 } UNION { ?q property:P921 ?i . ?i rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q838948 } } GROUP BY ?i } }
business magnate
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 work of art
action count
action filter_multi_types
action find_reverse
entity business magnate
relation main subject
type article
type work of art
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r property:main_subject resource:business_magnate . { { ?r rdf:type ontology:article } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?j < ?v ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?i WHERE { { ?q property:main_subject ?i . ?q rdf:type ontology:article . ?i rdf:type ontology:occupation } UNION { ?q property:main_subject ?i . ?i rdf:type ontology:occupation . ?q rdf:type ontology:work_of_art } } GROUP BY ?i } }
[]
occupation article work of art
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(Q191067)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q911554
relation P921
type Q191067
type Q838948
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r property:P921 resource:Q911554 . { { ?r rdf:type ontology:Q191067 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?j < ?v ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?i WHERE { { ?q property:P921 ?i . ?q rdf:type ontology:Q191067 . ?i rdf:type ontology:Q12737077 } UNION { ?q property:P921 ?i . ?i rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q838948 } } GROUP BY ?i } }
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 article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity business magnate
relation main subject
type article
type work of art
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r property:main_subject resource:business_magnate . { { ?r rdf:type ontology:article } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?j < ?v ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?i WHERE { { ?q property:main_subject ?i . ?q rdf:type ontology:article . ?i rdf:type ontology:occupation } UNION { ?q property:main_subject ?i . ?i rdf:type ontology:occupation . ?q rdf:type ontology:work_of_art } } GROUP BY ?i } }
[]