Simple Question (Direct)
Simple Question
Q5529332
P172
Q2472587
USER
What is the race of Gbenga Ogunniya ?
(Q5529332,P172,c(Q2472587))
action filter_type
action find
entity Q5529332
relation P172
type Q2472587
['Q5529332', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q2472587 . resource:Q5529332 property:P172 ?e }
Gbenga Ogunniya
action filter_type
action find
entity Gbenga Ogunniya
relation ethnic group
type people
['Gbenga Ogunniya', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:people . resource:Gbenga_Ogunniya property:ethnic_group ?e }
[]
people
Q190168
SYSTEM
Yoruba people
Q190168
(Q5529332,P172,c(Q2472587))
action filter_type
action find
entity Q5529332
relation P172
type Q2472587
The race of Gbenga Ogunniya is of [ANSWER]
['Q5529332', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q2472587 . resource:Q5529332 property:P172 ?e }
Yoruba people
The race of Gbenga Ogunniya is of Yoruba people
Yoruba people
action filter_type
action find
entity Gbenga Ogunniya
relation ethnic group
type people
['Gbenga Ogunniya', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:people . resource:Gbenga_Ogunniya property:ethnic_group ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5529332
P106
Q12737077
USER
What is the profession of that person ?
(Q190168,P106,c(Q12737077))
action filter_type
action find
entity Q5529332
relation P106
type Q12737077
['Q190168', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q5529332 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Gbenga Ogunniya
action filter_type
action find
entity Gbenga Ogunniya
relation occupation
type occupation
['Yoruba people', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Gbenga_Ogunniya property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q190168,P106,c(Q12737077))
action filter_type
action find
entity Q5529332
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q190168', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q5529332 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
politician
The profession of that person is a politician
politician
action filter_type
action find
entity Gbenga Ogunniya
relation occupation
type occupation
['Yoruba people', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Gbenga_Ogunniya property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P921
Q12737077 Q2342494 Q838948
USER
Which occupations were the main subjects of around the same number of collectables or works of art 's work as that occupation ?
(c(Q2342494)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?r ) WHERE { VALUES ( ?i ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?p rdf:type ?i } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P921 resource:Q82955 . { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?r = ?j ) }
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?r ) WHERE { VALUES ( ?i ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?p rdf:type ?i } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:main_subject resource:politician . { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?r = ?j ) }
[]
occupation collectable work of art
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 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 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(Q2342494)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q2342494
type Q838948
[ANSWERS] were the main subjects of around the same number of collectables or works of art 's work as that occupation
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?r ) WHERE { VALUES ( ?i ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?p rdf:type ?i } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P921 resource:Q82955 . { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?r = ?j ) }
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 Deputy to the Dáil rugby league player artist pastor 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 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 around the same number of collectables or works of art 's work as that occupation
Fletcher Christian farmer librarian
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?r ) WHERE { VALUES ( ?i ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?p rdf:type ?i } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:main_subject resource:politician . { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?r = ?j ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q316070
P40
Q502895
USER
Which person is a child of that occupation ?
(Q316070,P40,c(Q502895))
action filter_type
action find
entity Q316070
relation P40
type Q502895
['Q316070', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q316070 property:P40 ?g . ?g rdf:type ontology:Q502895 }
Fletcher Christian
action filter_type
action find
entity Fletcher Christian
relation child
type common name
['Fletcher Christian', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Fletcher_Christian property:child ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q131512
SYSTEM
Did you mean farmer ?
Q316070 Q131512 Q182436
(Q316070,P40,c(Q502895)) (Q131512,P40,c(Q502895)) (Q182436,P40,c(Q502895))
[ANSWER]
['Q316070', 'P40', {'concept': 'Q502895'}] ['Q131512', 'P40', {'concept': 'Q502895'}] ['Q182436', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q316070 property:P40 ?g . ?g rdf:type ontology:Q502895 }
Fletcher Christian farmer librarian
Did you mean farmer ?
farmer
['Fletcher Christian', 'child', {'concept': 'common name'}] ['farmer', 'child', {'concept': 'common name'}] ['librarian', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Fletcher_Christian property:child ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Fletcher Christian. Could you tell me the answer for that?
(Q316070,P40,c(Q502895))
Q316070
['Q316070', 'P40', {'concept': 'Q502895'}]
['Fletcher Christian', 'child', {'concept': 'common name'}]
[]
Q2336911
SYSTEM
Thursday October Christian I
Q2336911
(Q316070,P40,c(Q502895))
action filter_type
action find
entity Q316070
relation P40
type Q502895
The [ANSWER] is a child of that occupation
['Q316070', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q316070 property:P40 ?g . ?g rdf:type ontology:Q502895 }
Thursday October Christian I
The Thursday October Christian I is a child of that occupation
Thursday October Christian I
action filter_type
action find
entity Fletcher Christian
relation child
type common name
['Fletcher Christian', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Fletcher_Christian property:child ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2336911
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q2336911,P27,c(Q15617994))
action filter_type
action find
entity Q2336911
relation P27
type Q15617994
['Q2336911', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q2336911 property:P27 ?b }
Thursday October Christian I
action filter_type
action find
entity Thursday October Christian I
relation country of citizenship
type designation for an administrative territorial entity
['Thursday October Christian I', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Thursday_October_Christian_I property:country_of_citizenship ?b }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q2336911,P27,c(Q15617994))
action filter_type
action find
entity Q2336911
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q2336911', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q2336911 property:P27 ?b }
United Kingdom
That person belongs to the United Kingdom
United Kingdom
action filter_type
action find
entity Thursday October Christian I
relation country of citizenship
type designation for an administrative territorial entity
['Thursday October Christian I', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Thursday_October_Christian_I property:country_of_citizenship ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q178706 Q895526 Q12737077
USER
How many occupations are appointed by atleast 1 institutions and authority organs ?
(c(Q12737077),P748,c(Q178706)|c(Q895526))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q895526
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?h ) WHERE { { ?f property:P748 ?i . ?f rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q178706 } UNION { ?f property:P748 ?i . ?f rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q895526 } } GROUP BY ?f } . FILTER ( ?h >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type authority organ
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?h ) WHERE { { ?f property:appointed_by ?i . ?f rdf:type ontology:occupation . ?i rdf:type ontology:institution } UNION { ?f property:appointed_by ?i . ?f rdf:type ontology:occupation . ?i rdf:type ontology:authority_organ } } GROUP BY ?f } . FILTER ( ?h >= 1 ) }
[]
institution authority organ occupation
SYSTEM
37
Q2666591 Q1072417 Q2287650 Q5333410 Q261746 Q740126 Q1029955 Q642859 Q967762 Q1161813 Q940135 Q2305968 Q7444340 Q2419581 Q25863345 Q2747647 Q13645132 Q636207 Q2003296 Q967750 Q8882 Q783785 Q1072415 Q1763459 Q1591470 Q735015 Q1029968 Q2297543 Q967737 Q6542448 Q2301213 Q634291 Q735587 Q81066 Q1658460 Q786242 Q1434880
(c(Q12737077),P748,c(Q178706)|c(Q895526))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q895526
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?h ) WHERE { { ?f property:P748 ?i . ?f rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q178706 } UNION { ?f property:P748 ?i . ?f rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q895526 } } GROUP BY ?f } . FILTER ( ?h >= 1 ) }
Chair of the Federal Reserve Chief of Staff of the United States Air Force United States Secretary of the Interior Economic Secretary to the Treasury United States Secretary of the Air Force President of the European Parliament United States Secretary of Agriculture United States Secretary of Homeland Security United States Secretary of Education President of the United Nations General Assembly United States Secretary of the Navy United States Secretary of Health and Human Services Secretary of State for Dominion Affairs United States Secretary of Housing and Urban Development Secretary of State for International Trade Secretary of State for Defence Lord Mayor of Dublin United States Attorney General United States Secretary of Commerce United States Secretary of Labor President of the European Commission Chief of Staff of the United States Army Chief of Naval Operations Chairman of the Joint Chiefs of Staff United States Secretary of the Army United States Secretary of Defense United States Secretary of Energy United States Deputy Secretary of Defense United States Secretary of Transportation Librarian of Congress United States Deputy Secretary of State High Representative of the Union for Foreign Affairs and Security Policy President of the European Council United Nations Secretary-General United States Secretary of Veterans Affairs White House Chief of Staff Surgeon General of the United States
37
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type authority organ
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?h ) WHERE { { ?f property:appointed_by ?i . ?f rdf:type ontology:occupation . ?i rdf:type ontology:institution } UNION { ?f property:appointed_by ?i . ?f rdf:type ontology:occupation . ?i rdf:type ontology:authority_organ } } GROUP BY ?f } . FILTER ( ?h >= 1 ) }
[]