Simple Question (Direct)
Simple Question
Q296679
P39
Q12737077
USER
Which occupation was a position held by Eurico Gaspar Dutra ?
(Q296679,P39,c(Q12737077))
action filter_type
action find
entity Q296679
relation P39
type Q12737077
['Q296679', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q296679 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
Eurico Gaspar Dutra
action filter_type
action find
entity Eurico Gaspar Dutra
relation position held
type occupation
['Eurico Gaspar Dutra', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Eurico_Gaspar_Dutra property:position_held ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q5176750
SYSTEM
President of Brazil
Q5176750
(Q296679,P39,c(Q12737077))
action filter_type
action find
entity Q296679
relation P39
type Q12737077
[ANSWER] was a position held by Eurico Gaspar Dutra
['Q296679', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q296679 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
President of Brazil
President of Brazil was a position held by Eurico Gaspar Dutra
President of Brazil
action filter_type
action find
entity Eurico Gaspar Dutra
relation position held
type occupation
['Eurico Gaspar Dutra', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Eurico_Gaspar_Dutra property:position_held ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q296679
P20
Q56061
USER
Where did the demise of Eurico Gaspar Dutra occur ?
(Q296679,P20,c(Q56061))
action filter_type
action find
entity Q296679
relation P20
type Q56061
['Q296679', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q296679 property:P20 ?j }
Eurico Gaspar Dutra
action filter_type
action find
entity Eurico Gaspar Dutra
relation place of death
type administrative territorial entity
['Eurico Gaspar Dutra', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Eurico_Gaspar_Dutra property:place_of_death ?j }
[]
administrative territorial entity
Q8678
SYSTEM
Rio de Janeiro
Q8678
(Q296679,P20,c(Q56061))
action filter_type
action find
entity Q296679
relation P20
type Q56061
The demise of Eurico Gaspar Dutra occurred in [ANSWER]
['Q296679', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q296679 property:P20 ?j }
Rio de Janeiro
The demise of Eurico Gaspar Dutra occurred in Rio de Janeiro
Rio de Janeiro
action filter_type
action find
entity Eurico Gaspar Dutra
relation place of death
type administrative territorial entity
['Eurico Gaspar Dutra', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Eurico_Gaspar_Dutra property:place_of_death ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q296679
P102
Q7210356
USER
Which party does that person belong to ?
(Q8678,P102,c(Q7210356))
action filter_type
action find
entity Q296679
relation P102
type Q7210356
['Q8678', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7210356 . resource:Q296679 property:P102 ?d }
Eurico Gaspar Dutra
action filter_type
action find
entity Eurico Gaspar Dutra
relation member of political party
type political organization
['Rio de Janeiro', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_organization . resource:Eurico_Gaspar_Dutra property:member_of_political_party ?d }
[]
political organization
Q2626216
SYSTEM
Social Democratic Party
Q2626216
(Q8678,P102,c(Q7210356))
action filter_type
action find
entity Q296679
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q8678', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7210356 . resource:Q296679 property:P102 ?d }
Social Democratic Party
That person belongs to Social Democratic Party
Social Democratic Party
action filter_type
action find
entity Eurico Gaspar Dutra
relation member of political party
type political organization
['Rio de Janeiro', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_organization . resource:Eurico_Gaspar_Dutra property:member_of_political_party ?d }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2626216 Q8678
P159
Q56061
USER
Is Rio de Janeiro the head office for that political organization located ?
(Q2626216,P159,Q8678)
action is_in
entity Q8678
action find
entity Q2626216
relation P159
['Q2626216', 'P159', 'Q8678']
ASK WHERE { resource:Q2626216 property:P159 resource:Q8678 }
Social Democratic Party Rio de Janeiro
action is_in
entity Rio de Janeiro
action find
entity Social Democratic Party
relation headquarters location
['Social Democratic Party', 'headquarters location', 'Rio de Janeiro']
ASK WHERE { resource:Social_Democratic_Party property:headquarters_location resource:Rio_de_Janeiro }
[]
administrative territorial entity
SYSTEM
YES
(Q2626216,P159,Q8678)
action is_in
entity Q8678
action find
entity Q2626216
relation P159
[ANSWER]
['Q2626216', 'P159', 'Q8678']
ASK WHERE { resource:Q2626216 property:P159 resource:Q8678 }
Yes
action is_in
entity Rio de Janeiro
action find
entity Social Democratic Party
relation headquarters location
['Social Democratic Party', 'headquarters location', 'Rio de Janeiro']
ASK WHERE { resource:Social_Democratic_Party property:headquarters_location resource:Rio_de_Janeiro }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2626216
P102
Q502895
USER
How many people are members of Social Democratic Party ?
(c(Q502895),P102,Q2626216)
action count
action filter_type
action find_reverse
entity Q2626216
relation P102
type Q502895
[{'concept': 'Q502895'}, 'P102', 'Q2626216']
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:P102 resource:Q2626216 . ?j rdf:type ontology:Q502895 }
Social Democratic Party
action count
action filter_type
action find_reverse
entity Social Democratic Party
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Social Democratic Party']
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:member_of_political_party resource:Social_Democratic_Party . ?j rdf:type ontology:common_name }
[]
common name
SYSTEM
8
Q296679 Q10316609 Q2546210 Q10284624 Q192361 Q155824 Q10332752 Q10357130
(c(Q502895),P102,Q2626216)
action count
action filter_type
action find_reverse
entity Q2626216
relation P102
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P102', 'Q2626216']
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:P102 resource:Q2626216 . ?j rdf:type ontology:Q502895 }
Eurico Gaspar Dutra Lauro Locks Gilberto Kassab Francisco Badaró Júnior Pascoal Ranieri Mazzilli Juscelino Kubitschek Moura Cavalcanti Raimundo Colombo
8
action count
action filter_type
action find_reverse
entity Social Democratic Party
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Social Democratic Party']
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:member_of_political_party resource:Social_Democratic_Party . ?j rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q15987302
P921
Q12737077 Q191067 Q386724
USER
How many occupations were the main subjects of around the same number of articles or works 's work as legal profession ?
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q15987302
relation P921
type Q191067
type Q386724
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:Q191067 ) ( ontology:Q386724 ) } . ?u rdf:type ?k } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P921 resource:Q15987302 . { { ?f rdf:type ontology:Q386724 } UNION { ?f rdf:type ontology:Q191067 } } } } . FILTER ( ?h = ?g ) }
legal profession
action count
action approx
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
action count
action filter_multi_types
action find_reverse
entity legal profession
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:article ) ( ontology:work ) } . ?u rdf:type ?k } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:main_subject resource:legal_profession . { { ?f rdf:type ontology:work } UNION { ?f rdf:type ontology:article } } } } . FILTER ( ?h = ?g ) }
[]
occupation article work
SYSTEM
92
Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q2259532 Q1674312 Q361593 Q1856798 Q16707842
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q15987302
relation P921
type Q191067
type Q386724
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:Q191067 ) ( ontology:Q386724 ) } . ?u rdf:type ?k } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P921 resource:Q15987302 . { { ?f rdf:type ontology:Q386724 } UNION { ?f rdf:type ontology:Q191067 } } } } . FILTER ( ?h = ?g ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar 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 inventor war correspondent Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician poet medical examiner police officer aviator statesman political scientist cleric rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
92
action count
action approx
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
action count
action filter_multi_types
action find_reverse
entity legal profession
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:article ) ( ontology:work ) } . ?u rdf:type ?k } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:main_subject resource:legal_profession . { { ?f rdf:type ontology:work } UNION { ?f rdf:type ontology:article } } } } . FILTER ( ?h = ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q49757
P921
Q12737077 Q191067 Q386724
USER
And also tell me about poet?
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q49757
relation P921
type Q191067
type Q386724
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?c ) WHERE { { ?f property:P921 ?j . ?j rdf:type ontology:Q12737077 . ?f rdf:type ontology:Q191067 } UNION { ?f property:P921 ?j . ?j rdf:type ontology:Q12737077 . ?f rdf:type ontology:Q386724 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P921 resource:Q49757 . { { ?s rdf:type ontology:Q191067 } UNION { ?s rdf:type ontology:Q386724 } } } } . FILTER ( ?c = ?o ) }
poet
action count
action approx
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
action count
action filter_multi_types
action find_reverse
entity poet
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?c ) WHERE { { ?f property:main_subject ?j . ?j rdf:type ontology:occupation . ?f rdf:type ontology:article } UNION { ?f property:main_subject ?j . ?j rdf:type ontology:occupation . ?f rdf:type ontology:work } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:main_subject resource:poet . { { ?s rdf:type ontology:article } UNION { ?s rdf:type ontology:work } } } } . FILTER ( ?c = ?o ) }
[]
occupation article work
SYSTEM
92
Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q2259532 Q1674312 Q361593 Q1856798 Q16707842
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q49757
relation P921
type Q191067
type Q386724
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?c ) WHERE { { ?f property:P921 ?j . ?j rdf:type ontology:Q12737077 . ?f rdf:type ontology:Q191067 } UNION { ?f property:P921 ?j . ?j rdf:type ontology:Q12737077 . ?f rdf:type ontology:Q386724 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P921 resource:Q49757 . { { ?s rdf:type ontology:Q191067 } UNION { ?s rdf:type ontology:Q386724 } } } } . FILTER ( ?c = ?o ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar 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 inventor war correspondent Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician poet medical examiner police officer aviator statesman political scientist cleric rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
92
action count
action approx
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
action count
action filter_multi_types
action find_reverse
entity poet
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?c ) WHERE { { ?f property:main_subject ?j . ?j rdf:type ontology:occupation . ?f rdf:type ontology:article } UNION { ?f property:main_subject ?j . ?j rdf:type ontology:occupation . ?f rdf:type ontology:work } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:main_subject resource:poet . { { ?s rdf:type ontology:article } UNION { ?s rdf:type ontology:work } } } } . FILTER ( ?c = ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q936969
P921
Q12737077 Q838948 Q2342494
USER
Which occupations were the main subjects of more number of works of art and collectables 's work than nanny ?
(c(Q838948)|c(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q936969
relation P921
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?l WHERE { { ?l rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q838948 . ?g property:P921 ?l } UNION { ?l rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q2342494 . ?g property:P921 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:P921 resource:Q936969 . { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?e > ?v ) }
nanny
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 collectable
action count
action filter_multi_types
action find_reverse
entity nanny
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?l WHERE { { ?l rdf:type ontology:occupation . ?g rdf:type ontology:work_of_art . ?g property:main_subject ?l } UNION { ?l rdf:type ontology:occupation . ?g rdf:type ontology:collectable . ?g property:main_subject ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:main_subject resource:nanny . { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?e > ?v ) }
[]
occupation work of art collectable
Q1930187 Q937857 Q16746569
SYSTEM
journalist, association football player, high school student
Q39631 Q11631 Q33999 Q1930187 Q937857 Q9402 Q101539 Q164236 Q16746569 Q16003605 Q33231 Q16003532
(c(Q838948)|c(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q936969
relation P921
type Q838948
type Q2342494
The [ANSWERS] were the main subjects of more number of works of art and collectables 's work than nanny
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?l WHERE { { ?l rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q838948 . ?g property:P921 ?l } UNION { ?l rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q2342494 . ?g property:P921 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:P921 resource:Q936969 . { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?e > ?v ) }
physician astronaut actor journalist association football player ninja flight attendant war correspondent high school student elementary school student photographer middle school student
The journalist, association football player and high school student were the main subjects of more number of works of art and collectables 's work than nanny
journalist association football player 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 collectable
action count
action filter_multi_types
action find_reverse
entity nanny
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?l WHERE { { ?l rdf:type ontology:occupation . ?g rdf:type ontology:work_of_art . ?g property:main_subject ?l } UNION { ?l rdf:type ontology:occupation . ?g rdf:type ontology:collectable . ?g property:main_subject ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:main_subject resource:nanny . { ?z rdf:type ?w . VALUES ( ?w ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?e > ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q654291
P921
Q12737077 Q838948 Q2342494
USER
And what about Deputy to the Dáil?
(c(Q838948)|c(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q654291
relation P921
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { { ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q2342494 } } . ?y property:P921 resource:Q654291 } } . FILTER ( ?h > ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?u WHERE { ?f rdf:type ?g . VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?u } }
Deputy to the Dáil
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 collectable
action count
action filter_multi_types
action find_reverse
entity Deputy to the Dáil
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { { ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:collectable } } . ?y property:main_subject resource:Deputy_to_the_Dáil } } . FILTER ( ?h > ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?u WHERE { ?f rdf:type ?g . VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?u } }
[]
occupation work of art collectable
Q42973 Q18145518 Q18220900
SYSTEM
architect, Member of the New Zealand House of Representatives, Member of the South Australian House of Assembly
Q15637082 Q911554 Q39631 Q1124183 Q11631 Q33999 Q36180 Q774306 Q83307 Q4610556 Q18145518 Q7358 Q82955 Q730242 Q42973 Q1930187 Q937857 Q9402 Q2961580 Q43845 Q101539 Q29182 Q131524 Q205375 Q164236 Q14373094 Q18220900 Q936969 Q16746569 Q16003605 Q245068 Q33231 Q49757 Q2095549 Q1238570 Q2259532 Q1674312 Q16003532
(c(Q838948)|c(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q654291
relation P921
type Q838948
type Q2342494
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { { ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q2342494 } } . ?y property:P921 resource:Q654291 } } . FILTER ( ?h > ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?u WHERE { ?f rdf:type ?g . VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?u } }
industrialist business magnate physician lumberjack astronaut actor writer surgeon minister model Member of the New Zealand House of Representatives clown politician test pilot architect journalist association football player ninja taxi driver businessperson flight attendant bishop entrepreneur inventor war correspondent rugby league player Member of the South Australian House of Assembly nanny high school student elementary school student comedian photographer poet aviator political scientist cleric rag-and-bone man middle school student
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
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 collectable
action count
action filter_multi_types
action find_reverse
entity Deputy to the Dáil
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { { ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:collectable } } . ?y property:main_subject resource:Deputy_to_the_Dáil } } . FILTER ( ?h > ?p ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?u WHERE { ?f rdf:type ?g . VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?u } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18220900
P361
Q11204
USER
Which legislature is that occupation a part of ?
(Q18220900,P361,c(Q11204))
action filter_type
action find
entity Q18220900
relation P361
type Q11204
['Q18220900', 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ?c WHERE { resource:Q18220900 property:P361 ?c . ?c rdf:type ontology:Q11204 }
Member of the South Australian House of Assembly
action filter_type
action find
entity Member of the South Australian House of Assembly
relation part of
type legislature
['Member of the South Australian House of Assembly', 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ?c WHERE { resource:Member_of_the_South_Australian_House_of_Assembly property:part_of ?c . ?c rdf:type ontology:legislature }
[]
legislature
Clarification for simple ques.
Q42973
SYSTEM
Did you mean architect ?
Q42973 Q18145518 Q18220900
(Q42973,P361,c(Q11204)) (Q18145518,P361,c(Q11204)) (Q18220900,P361,c(Q11204))
[ANSWER]
['Q42973', 'P361', {'concept': 'Q11204'}] ['Q18145518', 'P361', {'concept': 'Q11204'}] ['Q18220900', 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ?c WHERE { resource:Q18220900 property:P361 ?c . ?c rdf:type ontology:Q11204 }
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
Did you mean architect ?
architect
['architect', 'part of', {'concept': 'legislature'}] ['Member of the New Zealand House of Representatives', 'part of', {'concept': 'legislature'}] ['Member of the South Australian House of Assembly', 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ?c WHERE { resource:Member_of_the_South_Australian_House_of_Assembly property:part_of ?c . ?c rdf:type ontology:legislature }
[]
Simple Question (Coreferenced)
USER
No, I meant Member of the South Australian House of Assembly. Could you tell me the answer for that?
(Q18220900,P361,c(Q11204))
Q18220900
['Q18220900', 'P361', {'concept': 'Q11204'}]
['Member of the South Australian House of Assembly', 'part of', {'concept': 'legislature'}]
[]
Q7566117
SYSTEM
South Australian House of Assembly
Q7566117
(Q18220900,P361,c(Q11204))
action filter_type
action find
entity Q18220900
relation P361
type Q11204
The [ANSWER] is that occupation a part of
['Q18220900', 'P361', {'concept': 'Q11204'}]
SELECT DISTINCT ?c WHERE { resource:Q18220900 property:P361 ?c . ?c rdf:type ontology:Q11204 }
South Australian House of Assembly
The South Australian House of Assembly is that occupation a part of
South Australian House of Assembly
action filter_type
action find
entity Member of the South Australian House of Assembly
relation part of
type legislature
['Member of the South Australian House of Assembly', 'part of', {'concept': 'legislature'}]
SELECT DISTINCT ?c WHERE { resource:Member_of_the_South_Australian_House_of_Assembly property:part_of ?c . ?c rdf:type ontology:legislature }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q266510
P194
Q11204 Q56061
USER
How many administrative territories have more number of legislatures as their representative body than Triptis ?
(c(Q56061),P194,c(Q11204))
action count
action greater
action find_tuple_counts
relation P194
type Q56061
type Q11204
action count
action filter_type
action find
entity Q266510
relation P194
type Q56061
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?i ) WHERE { ?o property:P194 ?h . ?o rdf:type ontology:Q56061 . ?h rdf:type ontology:Q11204 } GROUP BY ?o } . FILTER ( ?i > ?d ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { resource:Q266510 property:P194 ?x . ?x rdf:type ontology:Q56061 } } }
Triptis
action count
action greater
action find_tuple_counts
relation legislative body
type administrative territorial entity
type legislature
action count
action filter_type
action find
entity Triptis
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?i ) WHERE { ?o property:legislative_body ?h . ?o rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:legislature } GROUP BY ?o } . FILTER ( ?i > ?d ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { resource:Triptis property:legislative_body ?x . ?x rdf:type ontology:administrative_territorial_entity } } }
[]
legislature administrative territorial entity
SYSTEM
8
Q90 Q179313 Q61 Q172438 Q237 Q11703 Q26 Q62
(c(Q56061),P194,c(Q11204))
action count
action greater
action find_tuple_counts
relation P194
type Q56061
type Q11204
action count
action filter_type
action find
entity Q266510
relation P194
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?i ) WHERE { ?o property:P194 ?h . ?o rdf:type ontology:Q56061 . ?h rdf:type ontology:Q11204 } GROUP BY ?o } . FILTER ( ?i > ?d ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { resource:Q266510 property:P194 ?x . ?x rdf:type ontology:Q56061 } } }
Paris Alderney Washington, D.C. Peterborough Vatican City United States Virgin Islands Northern Ireland San Francisco
8
action count
action greater
action find_tuple_counts
relation legislative body
type administrative territorial entity
type legislature
action count
action filter_type
action find
entity Triptis
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?i ) WHERE { ?o property:legislative_body ?h . ?o rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:legislature } GROUP BY ?o } . FILTER ( ?i > ?d ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { resource:Triptis property:legislative_body ?x . ?x rdf:type ontology:administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q5092
P194
Q11204 Q56061
USER
And what about Baltimore?
(c(Q56061),P194,c(Q11204))
action count
action greater
action find_tuple_counts
relation P194
type Q56061
type Q11204
action count
action filter_type
action find
entity Q5092
relation P194
type Q56061
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?o ) WHERE { ?j property:P194 ?l . ?j rdf:type ontology:Q56061 . ?l rdf:type ontology:Q11204 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q5092 property:P194 ?s . ?s rdf:type ontology:Q56061 } } . FILTER ( ?o > ?r ) }
Baltimore
action count
action greater
action find_tuple_counts
relation legislative body
type administrative territorial entity
type legislature
action count
action filter_type
action find
entity Baltimore
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?o ) WHERE { ?j property:legislative_body ?l . ?j rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:legislature } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Baltimore property:legislative_body ?s . ?s rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?o > ?r ) }
[]
legislature administrative territorial entity
SYSTEM
8
Q90 Q179313 Q61 Q172438 Q237 Q11703 Q26 Q62
(c(Q56061),P194,c(Q11204))
action count
action greater
action find_tuple_counts
relation P194
type Q56061
type Q11204
action count
action filter_type
action find
entity Q5092
relation P194
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?o ) WHERE { ?j property:P194 ?l . ?j rdf:type ontology:Q56061 . ?l rdf:type ontology:Q11204 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q5092 property:P194 ?s . ?s rdf:type ontology:Q56061 } } . FILTER ( ?o > ?r ) }
Paris Alderney Washington, D.C. Peterborough Vatican City United States Virgin Islands Northern Ireland San Francisco
8
action count
action greater
action find_tuple_counts
relation legislative body
type administrative territorial entity
type legislature
action count
action filter_type
action find
entity Baltimore
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?o ) WHERE { ?j property:legislative_body ?l . ?j rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:legislature } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Baltimore property:legislative_body ?s . ?s rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?o > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2390270
P748
Q11204 Q12737077 Q12737077
USER
How many occupations were appointed by greater number of legislatures and occupations than Treasurer of Australia ?
(c(Q12737077),P748,c(Q11204)|c(Q12737077))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action count
action filter_multi_types
action find
entity Q2390270
relation P748
type Q11204
type Q12737077
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?m WHERE { { ?m property:P748 ?d . ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q11204 } UNION { ?m property:P748 ?d . ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q12737077 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { resource:Q2390270 property:P748 ?e . { { ?e rdf:type ontology:Q11204 } UNION { ?e rdf:type ontology:Q12737077 } } } } . FILTER ( ?n > ?t ) }
Treasurer of Australia
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type occupation
action count
action filter_multi_types
action find
entity Treasurer of Australia
relation appointed by
type legislature
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?m WHERE { { ?m property:appointed_by ?d . ?m rdf:type ontology:occupation . ?d rdf:type ontology:legislature } UNION { ?m property:appointed_by ?d . ?m rdf:type ontology:occupation . ?d rdf:type ontology:occupation } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { resource:Treasurer_of_Australia property:appointed_by ?e . { { ?e rdf:type ontology:legislature } UNION { ?e rdf:type ontology:occupation } } } } . FILTER ( ?n > ?t ) }
[]
legislature occupation occupation
SYSTEM
118
Q15934457 Q748607 Q3253692 Q192711 Q6865816 Q6865958 Q3251824 Q11793630 Q737115 Q6578215 Q1146214 Q23906787 Q6866004 Q4377222 Q15304810 Q1511951 Q191827 Q1476458 Q15407843 Q20736121 Q19190022 Q3251837 Q6865747 Q1749063 Q655407 Q24636364 Q14565638 Q251724 Q6572133 Q1006398 Q6865770 Q274948 Q596123 Q1723031 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q15971570 Q1430943 Q3556884 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1550276 Q208487 Q4294939 Q6866295 Q4377230 Q7240361 Q5195495 Q27088842 Q2560704 Q3251821 Q1043568 Q3251819 Q4294945 Q3564227 Q6866264 Q6865750 Q7240360 Q16933549 Q18694351 Q45369 Q1195049 Q6865853 Q687075 Q3251775 Q1587677 Q866680 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q26000995 Q3251793 Q1192903 Q6865904 Q2741479 Q6123144 Q3401758 Q7240356 Q6865864 Q13527909 Q3315114 Q11895063 Q1469153 Q12270260 Q6865789 Q1195270 Q6865781 Q7013201 Q4122271 Q2505890 Q6865756 Q16009376 Q3251800 Q3259469 Q5097071 Q6865981 Q3251807 Q13526082 Q6866016 Q1790154 Q6866422 Q3251818 Q6866427 Q6865902 Q738695 Q844587 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q11204)|c(Q12737077))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action count
action filter_multi_types
action find
entity Q2390270
relation P748
type Q11204
type Q12737077
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?m WHERE { { ?m property:P748 ?d . ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q11204 } UNION { ?m property:P748 ?d . ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q12737077 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { resource:Q2390270 property:P748 ?e . { { ?e rdf:type ontology:Q11204 } UNION { ?e rdf:type ontology:Q12737077 } } } } . FILTER ( ?n > ?t ) }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India Minister for Education and Skills Minister for Social Protection Minister of Natural Resources governor of national banks of Serbia and Yugoslavia Prime Minister of Estonia Premier of Saskatchewan Tánaiste Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Prime Minister of Romania Prime Minister of South Africa Taoiseach European Commissioner for the Environment Prime Minister of South Korea Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Minister for Foreign Affairs of Sweden President of the People's Republic of China bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland Governor of İstanbul Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Prime Minister of Japan president of Bangladesh Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs President of the Generalitat Valenciana Prime Minister of Jamaica Deputy Prime Minister of Canada Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy Premier of Western Australia Prime Minister of Israel Minister of Agriculture Minister of Public Services and Procurement Prime Minister of Greece Premier of Prince Edward Island Minister of Economy and Finance of Peru Director of the Holy See Press Office Premier of Ontario Minister of Transport Prime Minister of Vietnam Minister of Fisheries and Oceans Minister for Finance Auditor General of Canada Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia President of the Generalitat of Catalonia Minister of Communications Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Prime Minister of Sweden Minister of the Environment Prime Minister of France President of Vietnam Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development President of the Parliament of Catalonia Minister of Citizenship and Immigration Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Secretary of State of Puerto Rico Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Fiji Premier of Yukon Minister for Democratic Reform Prime Minister of Croatia Minister for Defence New York City Fire Commissioner Premier of the People's Republic of China Leader of the Government in the House of Commons Minister for Children and Youth Affairs Prime Minister of Albania Minister of Health Prime Minister of Poland Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Prime Minister of Spain bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan
118
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type occupation
action count
action filter_multi_types
action find
entity Treasurer of Australia
relation appointed by
type legislature
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?m WHERE { { ?m property:appointed_by ?d . ?m rdf:type ontology:occupation . ?d rdf:type ontology:legislature } UNION { ?m property:appointed_by ?d . ?m rdf:type ontology:occupation . ?d rdf:type ontology:occupation } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { resource:Treasurer_of_Australia property:appointed_by ?e . { { ?e rdf:type ontology:legislature } UNION { ?e rdf:type ontology:occupation } } } } . FILTER ( ?n > ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q39021
P748
Q11204 Q12737077 Q12737077
USER
And how about President of Singapore?
(c(Q12737077),P748,c(Q11204)|c(Q12737077))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action count
action filter_multi_types
action find
entity Q39021
relation P748
type Q11204
type Q12737077
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?w ) { ( ontology:Q11204 ) ( ontology:Q12737077 ) } . ?i rdf:type ?w } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:Q39021 property:P748 ?t . { { ?t rdf:type ontology:Q11204 } UNION { ?t rdf:type ontology:Q12737077 } } } } . FILTER ( ?p > ?s ) }
President of Singapore
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type occupation
action count
action filter_multi_types
action find
entity President of Singapore
relation appointed by
type legislature
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?w ) { ( ontology:legislature ) ( ontology:occupation ) } . ?i rdf:type ?w } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:President_of_Singapore property:appointed_by ?t . { { ?t rdf:type ontology:legislature } UNION { ?t rdf:type ontology:occupation } } } } . FILTER ( ?p > ?s ) }
[]
legislature occupation occupation
SYSTEM
118
Q15934457 Q748607 Q3253692 Q192711 Q6865816 Q6865958 Q3251824 Q11793630 Q737115 Q6578215 Q1146214 Q23906787 Q6866004 Q4377222 Q15304810 Q1511951 Q191827 Q1476458 Q15407843 Q20736121 Q19190022 Q3251837 Q6865747 Q1749063 Q655407 Q24636364 Q14565638 Q251724 Q6572133 Q1006398 Q6865770 Q274948 Q596123 Q1723031 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q15971570 Q1430943 Q3556884 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1550276 Q208487 Q4294939 Q6866295 Q4377230 Q7240361 Q5195495 Q27088842 Q2560704 Q3251821 Q1043568 Q3251819 Q4294945 Q3564227 Q6866264 Q6865750 Q7240360 Q16933549 Q18694351 Q45369 Q1195049 Q6865853 Q687075 Q3251775 Q1587677 Q866680 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q26000995 Q3251793 Q1192903 Q6865904 Q2741479 Q6123144 Q3401758 Q7240356 Q6865864 Q13527909 Q3315114 Q11895063 Q1469153 Q12270260 Q6865789 Q1195270 Q6865781 Q7013201 Q4122271 Q2505890 Q6865756 Q16009376 Q3251800 Q3259469 Q5097071 Q6865981 Q3251807 Q13526082 Q6866016 Q1790154 Q6866422 Q3251818 Q6866427 Q6865902 Q738695 Q844587 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q11204)|c(Q12737077))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action count
action filter_multi_types
action find
entity Q39021
relation P748
type Q11204
type Q12737077
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?w ) { ( ontology:Q11204 ) ( ontology:Q12737077 ) } . ?i rdf:type ?w } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:Q39021 property:P748 ?t . { { ?t rdf:type ontology:Q11204 } UNION { ?t rdf:type ontology:Q12737077 } } } } . FILTER ( ?p > ?s ) }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India Minister for Education and Skills Minister for Social Protection Minister of Natural Resources governor of national banks of Serbia and Yugoslavia Prime Minister of Estonia Premier of Saskatchewan Tánaiste Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Prime Minister of Romania Prime Minister of South Africa Taoiseach European Commissioner for the Environment Prime Minister of South Korea Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Minister for Foreign Affairs of Sweden President of the People's Republic of China bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland Governor of İstanbul Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Prime Minister of Japan president of Bangladesh Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs President of the Generalitat Valenciana Prime Minister of Jamaica Deputy Prime Minister of Canada Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy Premier of Western Australia Prime Minister of Israel Minister of Agriculture Minister of Public Services and Procurement Prime Minister of Greece Premier of Prince Edward Island Minister of Economy and Finance of Peru Director of the Holy See Press Office Premier of Ontario Minister of Transport Prime Minister of Vietnam Minister of Fisheries and Oceans Minister for Finance Auditor General of Canada Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia President of the Generalitat of Catalonia Minister of Communications Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Prime Minister of Sweden Minister of the Environment Prime Minister of France President of Vietnam Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development President of the Parliament of Catalonia Minister of Citizenship and Immigration Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Secretary of State of Puerto Rico Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Fiji Premier of Yukon Minister for Democratic Reform Prime Minister of Croatia Minister for Defence New York City Fire Commissioner Premier of the People's Republic of China Leader of the Government in the House of Commons Minister for Children and Youth Affairs Prime Minister of Albania Minister of Health Prime Minister of Poland Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Prime Minister of Spain bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan
118
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type occupation
action count
action filter_multi_types
action find
entity President of Singapore
relation appointed by
type legislature
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'occupation'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?w ) { ( ontology:legislature ) ( ontology:occupation ) } . ?i rdf:type ?w } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:President_of_Singapore property:appointed_by ?t . { { ?t rdf:type ontology:legislature } UNION { ?t rdf:type ontology:occupation } } } } . FILTER ( ?p > ?s ) }
[]