Simple Question (Direct)
Simple Question
Q441456
P1412
Q34770
USER
Which language does Sabina Berman Goldberg speak in ?
(Q441456,P1412,c(Q34770))
action filter_type
action find
entity Q441456
relation P1412
type Q34770
['Q441456', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q441456 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Sabina Berman Goldberg
action filter_type
action find
entity Sabina Berman Goldberg
relation languages spoken, written or signed
type language
['Sabina Berman Goldberg', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Sabina_Berman_Goldberg property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q441456,P1412,c(Q34770))
action filter_type
action find
entity Q441456
relation P1412
type Q34770
Sabina Berman Goldberg speaks in [ANSWER]
['Q441456', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q441456 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Spanish
Sabina Berman Goldberg speaks in Spanish
Spanish
action filter_type
action find
entity Sabina Berman Goldberg
relation languages spoken, written or signed
type language
['Sabina Berman Goldberg', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Sabina_Berman_Goldberg property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q441456
P106
Q12737077
USER
What are the professions of Sabina Berman Goldberg ?
(Q441456,P106,c(Q12737077))
action filter_type
action find
entity Q441456
relation P106
type Q12737077
['Q441456', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q441456 property:P106 ?v }
Sabina Berman Goldberg
action filter_type
action find
entity Sabina Berman Goldberg
relation occupation
type occupation
['Sabina Berman Goldberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Sabina_Berman_Goldberg property:occupation ?v }
[]
occupation
Q1930187 Q212980 Q36180
SYSTEM
journalist, psychologist, writer
Q1930187 Q212980 Q36180
(Q441456,P106,c(Q12737077))
action filter_type
action find
entity Q441456
relation P106
type Q12737077
The professions of Sabina Berman Goldberg are [ANSWERS]
['Q441456', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q441456 property:P106 ?v }
journalist psychologist writer
The professions of Sabina Berman Goldberg are journalist, psychologist and writer
journalist psychologist writer
action filter_type
action find
entity Sabina Berman Goldberg
relation occupation
type occupation
['Sabina Berman Goldberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Sabina_Berman_Goldberg property:occupation ?v }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19951673
Q12737077
USER
And what about Gabriel Arbouin?
(Q19951673,P106,c(Q12737077))
action filter_type
action find
entity Q19951673
relation P106
type Q12737077
['Q19951673', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q19951673 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Gabriel Arbouin
action filter_type
action find
entity Gabriel Arbouin
relation occupation
type occupation
['Gabriel Arbouin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Gabriel_Arbouin property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q19951673,P106,c(Q12737077))
action filter_type
action find
entity Q19951673
relation P106
type Q12737077
[ANSWER]
['Q19951673', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q19951673 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
writer
writer
action filter_type
action find
entity Gabriel Arbouin
relation occupation
type occupation
['Gabriel Arbouin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Gabriel_Arbouin property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q12737077 Q43229 Q502895
USER
How many occupations are the area of less number of organizations and people than that occupation ?
(c(Q43229)|c(Q502895),P101,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P101
type Q43229
type Q502895
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?t WHERE { VALUES ( ?e ) { ( ontology:Q43229 ) ( ontology:Q502895 ) } . ?x rdf:type ?e } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P101 resource:Q36180 . { { ?f rdf:type ontology:Q43229 } UNION { ?f rdf:type ontology:Q502895 } } } } . FILTER ( ?o < ?i ) }
action count
action less
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity writer
relation field of work
type organization
type common name
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?t WHERE { VALUES ( ?e ) { ( ontology:organization ) ( ontology:common_name ) } . ?x rdf:type ?e } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:field_of_work resource:writer . { { ?f rdf:type ontology:organization } UNION { ?f rdf:type ontology:common_name } } } } . FILTER ( ?o < ?i ) }
[]
occupation organization common name
SYSTEM
10
Q652122 Q2259451 Q326358 Q705908 Q2205972 Q901 Q3387717 Q154549 Q2490358 Q15954519
(c(Q43229)|c(Q502895),P101,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P101
type Q43229
type Q502895
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?t WHERE { VALUES ( ?e ) { ( ontology:Q43229 ) ( ontology:Q502895 ) } . ?x rdf:type ?e } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P101 resource:Q36180 . { { ?f rdf:type ontology:Q43229 } UNION { ?f rdf:type ontology:Q502895 } } } } . FILTER ( ?o < ?i ) }
sewing stage actor joiner agency agreement stained-glass artist scientist theatre director carpenter choreographer alchemist
10
action count
action less
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action count
action filter_multi_types
action find_reverse
entity writer
relation field of work
type organization
type common name
[[{'concept': 'organization'}, {'concept': 'common name'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?t WHERE { VALUES ( ?e ) { ( ontology:organization ) ( ontology:common_name ) } . ?x rdf:type ?e } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:field_of_work resource:writer . { { ?f rdf:type ontology:organization } UNION { ?f rdf:type ontology:common_name } } } } . FILTER ( ?o < ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1930187
P425
Q12737077
USER
What has journalist as thier associated field of occupation ?
(Q1930187,P425,c(Q12737077))
action filter_type
action find
entity Q1930187
relation P425
type Q12737077
['Q1930187', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1930187 property:P425 ?f . ?f rdf:type ontology:Q12737077 }
journalist
action filter_type
action find
entity journalist
relation field of this occupation
type occupation
['journalist', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:journalist property:field_of_this_occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q1930187,P425,c(Q12737077))
action filter_type
action find
entity Q1930187
relation P425
type Q12737077
As [ANSWER] has journalist as thier associated field of occupation
['Q1930187', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1930187 property:P425 ?f . ?f rdf:type ontology:Q12737077 }
writer
As writer has journalist as thier associated field of occupation
writer
action filter_type
action find
entity journalist
relation field of this occupation
type occupation
['journalist', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:journalist property:field_of_this_occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2936875
Q12737077
USER
And also tell me about Cantore al liuto?
(Q2936875,P425,c(Q12737077))
action filter_type
action find
entity Q2936875
relation P425
type Q12737077
['Q2936875', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q2936875 property:P425 ?p }
Cantore al liuto
action filter_type
action find
entity Cantore al liuto
relation field of this occupation
type occupation
['Cantore al liuto', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Cantore_al_liuto property:field_of_this_occupation ?p }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q2936875,P425,c(Q12737077))
action filter_type
action find
entity Q2936875
relation P425
type Q12737077
[ANSWER]
['Q2936875', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q2936875 property:P425 ?p }
composer
composer
action filter_type
action find
entity Cantore al liuto
relation field of this occupation
type occupation
['Cantore al liuto', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Cantore_al_liuto property:field_of_this_occupation ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q36834
P106
Q16334295 Q188451
USER
How many groups of humans or music genres have the profession as composer ?
(c(Q16334295),P106,Q36834) (c(Q188451),P106,Q36834)
action count
action union
action filter_type
action find_reverse
entity Q36834
relation P106
type Q16334295
action filter_type
action find_reverse
entity Q36834
relation P106
type Q188451
[{'concept': 'Q16334295'}, 'P106', 'Q36834'] [{'concept': 'Q188451'}, 'P106', 'Q36834']
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?p ) { ( ontology:Q16334295 ) ( ontology:Q188451 ) } . ?q rdf:type ?p }
composer
action count
action union
action filter_type
action find_reverse
entity composer
relation occupation
type group of humans
action filter_type
action find_reverse
entity composer
relation occupation
type music genre
[{'concept': 'group of humans'}, 'occupation', 'composer'] [{'concept': 'music genre'}, 'occupation', 'composer']
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?p ) { ( ontology:group_of_humans ) ( ontology:music_genre ) } . ?q rdf:type ?p }
[]
group of humans music genre
SYSTEM
3
Q3929557 Q2062303 Q5377442
(c(Q16334295),P106,Q36834) (c(Q188451),P106,Q36834)
action count
action union
action filter_type
action find_reverse
entity Q36834
relation P106
type Q16334295
action filter_type
action find_reverse
entity Q36834
relation P106
type Q188451
[ANSWER]
[{'concept': 'Q16334295'}, 'P106', 'Q36834'] [{'concept': 'Q188451'}, 'P106', 'Q36834']
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?p ) { ( ontology:Q16334295 ) ( ontology:Q188451 ) } . ?q rdf:type ?p }
Raimon de Durfort and Turc Malec Paul Schott Engarandus Juvenis
3
action count
action union
action filter_type
action find_reverse
entity composer
relation occupation
type group of humans
action filter_type
action find_reverse
entity composer
relation occupation
type music genre
[{'concept': 'group of humans'}, 'occupation', 'composer'] [{'concept': 'music genre'}, 'occupation', 'composer']
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { VALUES ( ?p ) { ( ontology:group_of_humans ) ( ontology:music_genre ) } . ?q rdf:type ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q652
P282
Q9779
USER
What is the writing system of Italian known as ?
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?g WHERE { resource:Q652 property:P282 ?g . ?g rdf:type ontology:Q9779 }
Italian
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?g WHERE { resource:Italian property:writing_system ?g . ?g rdf:type ontology:alphabet }
[]
alphabet
Q550383
SYSTEM
Italian alphabet
Q550383
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
The writing system of Italian known as is the [ANSWER]
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?g WHERE { resource:Q652 property:P282 ?g . ?g rdf:type ontology:Q9779 }
Italian alphabet
The writing system of Italian known as is the Italian alphabet
Italian alphabet
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?g WHERE { resource:Italian property:writing_system ?g . ?g rdf:type ontology:alphabet }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P282
Q9779 Q34770
USER
How many alphabets are used as the scripts for around the same number of languages as that alphabet ?
(c(Q34770),P282,c(Q9779))
action count
action approx
action find_reverse_tuple_counts
relation P282
type Q9779
type Q34770
action count
action filter_type
action find
entity Q550383
relation P282
type Q9779
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?w ) WHERE { ?i property:P282 ?y . ?y rdf:type ontology:Q9779 . ?i rdf:type ontology:Q34770 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { resource:Q550383 property:P282 ?x . ?x rdf:type ontology:Q9779 } } . FILTER ( ?w = ?m ) }
action count
action approx
action find_reverse_tuple_counts
relation writing system
type alphabet
type language
action count
action filter_type
action find
entity Italian alphabet
relation writing system
type alphabet
[{'concept': 'language'}, 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?w ) WHERE { ?i property:writing_system ?y . ?y rdf:type ontology:alphabet . ?i rdf:type ontology:language } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { resource:Italian_alphabet property:writing_system ?x . ?x rdf:type ontology:alphabet } } . FILTER ( ?w = ?m ) }
[]
alphabet language
SYSTEM
14
Q164436 Q754989 Q792216 Q606972 Q187846 Q829464 Q13405127 Q550383 Q1937113 Q442244 Q2092163 Q540987 Q2712936 Q83942
(c(Q34770),P282,c(Q9779))
action count
action approx
action find_reverse_tuple_counts
relation P282
type Q9779
type Q34770
action count
action filter_type
action find
entity Q550383
relation P282
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?w ) WHERE { ?i property:P282 ?y . ?y rdf:type ontology:Q9779 . ?i rdf:type ontology:Q34770 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { resource:Q550383 property:P282 ?x . ?x rdf:type ontology:Q9779 } } . FILTER ( ?w = ?m ) }
Bulgarian alphabet Gaj's Latin alphabet Belarusian alphabet Polish alphabet Russian alphabet Serbian Cyrillic alphabet Rusyn alphabet Italian alphabet futhark Early Cyrillic alphabet Macedonian alphabet Portuguese alphabet futhorc Jawi alphabet
14
action count
action approx
action find_reverse_tuple_counts
relation writing system
type alphabet
type language
action count
action filter_type
action find
entity Italian alphabet
relation writing system
type alphabet
[{'concept': 'language'}, 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?w ) WHERE { ?i property:writing_system ?y . ?y rdf:type ontology:alphabet . ?i rdf:type ontology:language } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { resource:Italian_alphabet property:writing_system ?x . ?x rdf:type ontology:alphabet } } . FILTER ( ?w = ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q33231
P921
Q12737077 Q838948 Q386724
USER
Which occupations were the main subjects of less number of works of art or works 's work than photographer ?
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q33231
relation P921
type Q838948
type Q386724
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?i WHERE { { ?q property:P921 ?i . ?i rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P921 ?i . ?i rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q386724 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P921 resource:Q33231 . { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } } } . FILTER ( ?t < ?b ) }
photographer
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity photographer
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?i WHERE { { ?q property:main_subject ?i . ?i rdf:type ontology:occupation . ?q rdf:type ontology:work_of_art } UNION { ?q property:main_subject ?i . ?i rdf:type ontology:occupation . ?q rdf:type ontology:work } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:main_subject resource:photographer . { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:work ) } } } } . FILTER ( ?t < ?b ) }
[]
occupation work of art work
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 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 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q16746569 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q33231
relation P921
type Q838948
type Q386724
[ANSWERS] were the main subjects of less number of works of art or works 's work than photographer
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?i WHERE { { ?q property:P921 ?i . ?i rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P921 ?i . ?i rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q386724 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:P921 resource:Q33231 . { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } } } . FILTER ( ?t < ?b ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist 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 Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward 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 pastor cartoonist judge Member of the South Australian House of Assembly nanny high school student caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Fletcher Christian, farmer and librarian were the main subjects of less number of works of art or works 's work than photographer
Fletcher Christian farmer librarian
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity photographer
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?i WHERE { { ?q property:main_subject ?i . ?i rdf:type ontology:occupation . ?q rdf:type ontology:work_of_art } UNION { ?q property:main_subject ?i . ?i rdf:type ontology:occupation . ?q rdf:type ontology:work } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { ?v property:main_subject resource:photographer . { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:work ) } } } } . FILTER ( ?t < ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q245068
P921
Q12737077 Q838948 Q386724
USER
And what about comedian?
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q245068
relation P921
type Q838948
type Q386724
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?k ) WHERE { { ?x rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q838948 . ?c property:P921 ?x } UNION { ?c property:P921 ?x . ?c rdf:type ontology:Q386724 . ?x rdf:type ontology:Q12737077 } } GROUP BY ?x } . FILTER ( ?k < ?m ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P921 resource:Q245068 . { { ?u rdf:type ontology:Q838948 } UNION { ?u rdf:type ontology:Q386724 } } } } }
comedian
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity comedian
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?k ) WHERE { { ?x rdf:type ontology:occupation . ?c rdf:type ontology:work_of_art . ?c property:main_subject ?x } UNION { ?c property:main_subject ?x . ?c rdf:type ontology:work . ?x rdf:type ontology:occupation } } GROUP BY ?x } . FILTER ( ?k < ?m ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:main_subject resource:comedian . { { ?u rdf:type ontology:work_of_art } UNION { ?u rdf:type ontology:work } } } } }
[]
occupation work of art work
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 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 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q372436 Q1238570 Q182436 Q2259532 Q361593 Q1856798 Q16707842
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q245068
relation P921
type Q838948
type Q386724
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?k ) WHERE { { ?x rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q838948 . ?c property:P921 ?x } UNION { ?c property:P921 ?x . ?c rdf:type ontology:Q386724 . ?x rdf:type ontology:Q12737077 } } GROUP BY ?x } . FILTER ( ?k < ?m ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P921 resource:Q245068 . { { ?u rdf:type ontology:Q838948 } UNION { ?u rdf:type ontology:Q386724 } } } } }
praetor 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 Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward 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 pastor 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 Nomarch poet medical examiner police officer statesman political scientist librarian cleric police officer baseball umpire Member of Parliament in the United Kingdom
Fletcher Christian farmer librarian
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity comedian
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?k ) WHERE { { ?x rdf:type ontology:occupation . ?c rdf:type ontology:work_of_art . ?c property:main_subject ?x } UNION { ?c property:main_subject ?x . ?c rdf:type ontology:work . ?x rdf:type ontology:occupation } } GROUP BY ?x } . FILTER ( ?k < ?m ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:main_subject resource:comedian . { { ?u rdf:type ontology:work_of_art } UNION { ?u rdf:type ontology:work } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the names of the patron saint of around 3 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:P417 ?s . ?s rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?s } . FILTER ( ?y = 3 ) }
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:patron_saint ?s . ?s rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?s } . FILTER ( ?y = 3 ) }
[]
common name occupation
SYSTEM
3
Q128538 Q192816 Q200895
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:P417 ?s . ?s rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?s } . FILTER ( ?y = 3 ) }
Luke the Evangelist Saint Barbara Agatha of Sicily
3
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:patron_saint ?s . ?s rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?s } . FILTER ( ?y = 3 ) }
[]