Simple Question (Direct)
Simple Question
Q1530860
P106
Q12737077
USER
What are the job of Glen Tetley ?
(Q1530860,P106,c(Q12737077))
action filter_type
action find
entity Q1530860
relation P106
type Q12737077
['Q1530860', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q1530860 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Glen Tetley
action filter_type
action find
entity Glen Tetley
relation occupation
type occupation
['Glen Tetley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Glen_Tetley property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q2490358 Q5716684
SYSTEM
choreographer, dancer
Q2490358 Q5716684
(Q1530860,P106,c(Q12737077))
action filter_type
action find
entity Q1530860
relation P106
type Q12737077
The job of Glen Tetley are a [ANSWERS]
['Q1530860', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q1530860 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
choreographer dancer
The job of Glen Tetley are a choreographer and dancer
choreographer dancer
action filter_type
action find
entity Glen Tetley
relation occupation
type occupation
['Glen Tetley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Glen_Tetley property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1530860
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q2490358,P19,c(Q56061)) (Q5716684,P19,c(Q56061))
action filter_type
action find
entity Q1530860
relation P19
type Q56061
['Q2490358', 'P19', {'concept': 'Q56061'}] ['Q5716684', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1530860 property:P19 ?m }
Glen Tetley
action filter_type
action find
entity Glen Tetley
relation place of birth
type administrative territorial entity
['choreographer', 'place of birth', {'concept': 'administrative territorial entity'}] ['dancer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Glen_Tetley property:place_of_birth ?m }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q2490358,P19,c(Q56061)) (Q5716684,P19,c(Q56061))
action filter_type
action find
entity Q1530860
relation P19
type Q56061
That person was born in [ANSWER]
['Q2490358', 'P19', {'concept': 'Q56061'}] ['Q5716684', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1530860 property:P19 ?m }
New York City
That person was born in New York City
New York City
action filter_type
action find
entity Glen Tetley
relation place of birth
type administrative territorial entity
['choreographer', 'place of birth', {'concept': 'administrative territorial entity'}] ['dancer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Glen_Tetley property:place_of_birth ?m }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q60 Q33935
P190
Q56061
USER
Is Tel Aviv twin town of that one ?
(Q60,P190,Q33935)
action is_in
entity Q33935
action find
entity Q60
relation P190
['Q60', 'P190', 'Q33935']
ASK WHERE { resource:Q60 property:P190 resource:Q33935 }
New York City Tel Aviv
action is_in
entity Tel Aviv
action find
entity New York City
relation sister city
['New York City', 'sister city', 'Tel Aviv']
ASK WHERE { resource:New_York_City property:sister_city resource:Tel_Aviv }
[]
administrative territorial entity
SYSTEM
YES
(Q60,P190,Q33935)
action is_in
entity Q33935
action find
entity Q60
relation P190
[ANSWER]
['Q60', 'P190', 'Q33935']
ASK WHERE { resource:Q60 property:P190 resource:Q33935 }
Yes
action is_in
entity Tel Aviv
action find
entity New York City
relation sister city
['New York City', 'sister city', 'Tel Aviv']
ASK WHERE { resource:New_York_City property:sister_city resource:Tel_Aviv }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1530860 Q989089 Q1022
P937
Q56061
USER
Does Glen Tetley have Oymaklı and Stuttgart as work location ?
(Q1530860,P937,Q989089) (Q1530860,P937,Q1022)
action is_in
entity Q1530860
action intersection
action find_reverse
entity Q989089
relation P937
action find_reverse
entity Q1022
relation P937
['Q1530860', 'P937', 'Q989089'] ['Q1530860', 'P937', 'Q1022']
ASK WHERE { resource:Q1530860 property:P937 resource:Q989089 . resource:Q1530860 property:P937 resource:Q1022 }
Glen Tetley Oymaklı Stuttgart
action is_in
entity Glen Tetley
action intersection
action find_reverse
entity Oymaklı
relation work location
action find_reverse
entity Stuttgart
relation work location
['Glen Tetley', 'work location', 'Oymaklı'] ['Glen Tetley', 'work location', 'Stuttgart']
ASK WHERE { resource:Glen_Tetley property:work_location resource:Oymaklı . resource:Glen_Tetley property:work_location resource:Stuttgart }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q1530860,P937,Q989089) (Q1530860,P937,Q1022)
action is_in
entity Q1530860
action intersection
action find_reverse
entity Q989089
relation P937
action find_reverse
entity Q1022
relation P937
[ANSWER]
['Q1530860', 'P937', 'Q989089'] ['Q1530860', 'P937', 'Q1022']
ASK WHERE { resource:Q1530860 property:P937 resource:Q989089 . resource:Q1530860 property:P937 resource:Q1022 }
NO and YES respectively
action is_in
entity Glen Tetley
action intersection
action find_reverse
entity Oymaklı
relation work location
action find_reverse
entity Stuttgart
relation work location
['Glen Tetley', 'work location', 'Oymaklı'] ['Glen Tetley', 'work location', 'Stuttgart']
ASK WHERE { resource:Glen_Tetley property:work_location resource:Oymaklı . resource:Glen_Tetley property:work_location resource:Stuttgart }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5716684 Q16146738 Q18386146
P417
Q502895
USER
Is Apaochi and Suharril Fetri a patron saint of dancer ?
(Q5716684,P417,Q16146738) (Q5716684,P417,Q18386146)
action is_in
entity Q5716684
action intersection
action find_reverse
entity Q16146738
relation P417
action find_reverse
entity Q18386146
relation P417
['Q5716684', 'P417', 'Q16146738'] ['Q5716684', 'P417', 'Q18386146']
ASK WHERE { resource:Q5716684 property:P417 resource:Q16146738 . resource:Q5716684 property:P417 resource:Q18386146 }
dancer Apaochi Suharril Fetri
action is_in
entity dancer
action intersection
action find_reverse
entity Apaochi
relation patron saint
action find_reverse
entity Suharril Fetri
relation patron saint
['dancer', 'patron saint', 'Apaochi'] ['dancer', 'patron saint', 'Suharril Fetri']
ASK WHERE { resource:dancer property:patron_saint resource:Apaochi . resource:dancer property:patron_saint resource:Suharril_Fetri }
[]
common name
SYSTEM
NO
(Q5716684,P417,Q16146738) (Q5716684,P417,Q18386146)
action is_in
entity Q5716684
action intersection
action find_reverse
entity Q16146738
relation P417
action find_reverse
entity Q18386146
relation P417
[ANSWER]
['Q5716684', 'P417', 'Q16146738'] ['Q5716684', 'P417', 'Q18386146']
ASK WHERE { resource:Q5716684 property:P417 resource:Q16146738 . resource:Q5716684 property:P417 resource:Q18386146 }
No
action is_in
entity dancer
action intersection
action find_reverse
entity Apaochi
relation patron saint
action find_reverse
entity Suharril Fetri
relation patron saint
['dancer', 'patron saint', 'Apaochi'] ['dancer', 'patron saint', 'Suharril Fetri']
ASK WHERE { resource:dancer property:patron_saint resource:Apaochi . resource:dancer property:patron_saint resource:Suharril_Fetri }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q60
P138
Q56061
USER
Which administrative territory is namesake of New York City ?
(Q60,P138,c(Q56061))
action filter_type
action find
entity Q60
relation P138
type Q56061
['Q60', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q60 property:P138 ?e . ?e rdf:type ontology:Q56061 }
New York City
action filter_type
action find
entity New York City
relation named after
type administrative territorial entity
['New York City', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:New_York_City property:named_after ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q42462
SYSTEM
York
Q42462
(Q60,P138,c(Q56061))
action filter_type
action find
entity Q60
relation P138
type Q56061
[ANSWER] is namesake of New [ANSWER] City
['Q60', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q60 property:P138 ?e . ?e rdf:type ontology:Q56061 }
York
York is namesake of New York City
York
action filter_type
action find
entity New York City
relation named after
type administrative territorial entity
['New York City', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:New_York_City property:named_after ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q16746569
P921
Q12737077 Q191067 Q386724
USER
Which occupations were the main subjects of less number of articles or works 's work than high school student ?
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q16746569
relation P921
type Q191067
type Q386724
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?k WHERE { ?m rdf:type ?d . VALUES ( ?d ) { ( ontology:Q191067 ) ( ontology:Q386724 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P921 resource:Q16746569 . { { ?y rdf:type ontology:Q191067 } UNION { ?y rdf:type ontology:Q386724 } } } } . FILTER ( ?j < ?s ) }
high school student
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity high school student
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?k WHERE { ?m rdf:type ?d . VALUES ( ?d ) { ( ontology:article ) ( ontology:work ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:main_subject resource:high_school_student . { { ?y rdf:type ontology:article } UNION { ?y rdf:type ontology:work } } } } . FILTER ( ?j < ?s ) }
[]
occupation article work
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 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 Q9402 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 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q191067)|c(Q386724),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q16746569
relation P921
type Q191067
type Q386724
[ANSWERS] were the main subjects of less number of articles or works 's work than high school student
[[{'concept': 'Q191067'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?k WHERE { ?m rdf:type ?d . VALUES ( ?d ) { ( ontology:Q191067 ) ( ontology:Q386724 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P921 resource:Q16746569 . { { ?y rdf:type ontology:Q191067 } UNION { ?y rdf:type ontology:Q386724 } } } } . FILTER ( ?j < ?s ) }
praetor 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 ninja 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 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 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 articles or works 's work than high school student
Fletcher Christian farmer librarian
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity high school student
relation main subject
type article
type work
[[{'concept': 'article'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?k WHERE { ?m rdf:type ?d . VALUES ( ?d ) { ( ontology:article ) ( ontology:work ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:main_subject resource:high_school_student . { { ?y rdf:type ontology:article } UNION { ?y rdf:type ontology:work } } } } . FILTER ( ?j < ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q13474373
P180
Q12737077 Q386724 Q3305213
USER
Which occupations are demonstrated in more number of works or paintings than professional wrestler ?
(c(Q386724)|c(Q3305213),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q13474373
relation P180
type Q386724
type Q3305213
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?v WHERE { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q3305213 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P180 resource:Q13474373 . { { ?a rdf:type ontology:Q386724 } UNION { ?a rdf:type ontology:Q3305213 } } } } . FILTER ( ?n > ?j ) }
professional wrestler
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity professional wrestler
relation depicts
type work
type painting
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?v WHERE { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:work ) ( ontology:painting ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:depicts resource:professional_wrestler . { { ?a rdf:type ontology:work } UNION { ?a rdf:type ontology:painting } } } } . FILTER ( ?n > ?j ) }
[]
occupation work painting
Q131512 Q1401609 Q4991371
SYSTEM
farmer, vaquero, soldier
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q12097 Q12059906 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q54128 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100
(c(Q386724)|c(Q3305213),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q13474373
relation P180
type Q386724
type Q3305213
The [ANSWERS] are demonstrated in more number of works or paintings than professional wrestler
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?v WHERE { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q3305213 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P180 resource:Q13474373 . { { ?a rdf:type ontology:Q386724 } UNION { ?a rdf:type ontology:Q3305213 } } } } . FILTER ( ?n > ?j ) }
farmer vaquero lumberjack shepherd violinist religious servant detective pianist artist merchant mandolinist tax collector painter monk king herder trapper tennis player scrivener soldier Catholic priest chess player domestic worker equestrian abbot executioner dancer maid picador peasant fisherman musician poet draughtsperson sculptor construction worker priest art model
The farmer, vaquero and soldier are demonstrated in more number of works or paintings than professional wrestler
farmer vaquero soldier
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity professional wrestler
relation depicts
type work
type painting
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?v WHERE { ?o rdf:type ?y . VALUES ( ?y ) { ( ontology:work ) ( ontology:painting ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:depicts resource:professional_wrestler . { { ?a rdf:type ontology:work } UNION { ?a rdf:type ontology:painting } } } } . FILTER ( ?n > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q211423
P180
Q12737077 Q386724 Q3305213
USER
And how about goldsmith?
(c(Q386724)|c(Q3305213),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q211423
relation P180
type Q386724
type Q3305213
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?m WHERE { ?a rdf:type ?u . VALUES ( ?u ) { ( ontology:Q386724 ) ( ontology:Q3305213 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:P180 resource:Q211423 . { { ?b rdf:type ontology:Q386724 } UNION { ?b rdf:type ontology:Q3305213 } } } } . FILTER ( ?p > ?g ) }
goldsmith
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity goldsmith
relation depicts
type work
type painting
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?m WHERE { ?a rdf:type ?u . VALUES ( ?u ) { ( ontology:work ) ( ontology:painting ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:depicts resource:goldsmith . { { ?b rdf:type ontology:work } UNION { ?b rdf:type ontology:painting } } } } . FILTER ( ?p > ?g ) }
[]
occupation work painting
Q131512 Q1401609 Q4991371
SYSTEM
farmer, vaquero, soldier
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q12097 Q12059906 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q54128 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100
(c(Q386724)|c(Q3305213),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q211423
relation P180
type Q386724
type Q3305213
[ANSWERS]
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?m WHERE { ?a rdf:type ?u . VALUES ( ?u ) { ( ontology:Q386724 ) ( ontology:Q3305213 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:P180 resource:Q211423 . { { ?b rdf:type ontology:Q386724 } UNION { ?b rdf:type ontology:Q3305213 } } } } . FILTER ( ?p > ?g ) }
farmer vaquero lumberjack shepherd violinist religious servant detective pianist artist merchant mandolinist tax collector painter monk king herder trapper tennis player scrivener soldier Catholic priest chess player domestic worker equestrian abbot executioner dancer maid picador peasant fisherman musician poet draughtsperson sculptor construction worker priest art model
farmer vaquero soldier
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity goldsmith
relation depicts
type work
type painting
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?m WHERE { ?a rdf:type ?u . VALUES ( ?u ) { ( ontology:work ) ( ontology:painting ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?b property:depicts resource:goldsmith . { { ?b rdf:type ontology:work } UNION { ?b rdf:type ontology:painting } } } } . FILTER ( ?p > ?g ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q131512 Q1401609 Q4991371
P180
Q3305213
USER
Which paintings demonstrate farmer, vaquero and soldier ?
(c(Q3305213),P180,Q131512) (c(Q3305213),P180,Q1401609) (c(Q3305213),P180,Q4991371)
action union
action filter_type
action find_reverse
entity Q131512
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q1401609
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q4991371
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q131512'] [{'concept': 'Q3305213'}, 'P180', 'Q1401609'] [{'concept': 'Q3305213'}, 'P180', 'Q4991371']
SELECT DISTINCT ?e WHERE { { ?e property:P180 resource:Q1401609 . ?e rdf:type ontology:Q3305213 } UNION { ?e rdf:type ontology:Q3305213 . ?e property:P180 resource:Q131512 } }
farmer vaquero soldier
action union
action filter_type
action find_reverse
entity farmer
relation depicts
type painting
action filter_type
action find_reverse
entity vaquero
relation depicts
type painting
action filter_type
action find_reverse
entity soldier
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'farmer'] [{'concept': 'painting'}, 'depicts', 'vaquero'] [{'concept': 'painting'}, 'depicts', 'soldier']
SELECT DISTINCT ?e WHERE { { ?e property:depicts resource:vaquero . ?e rdf:type ontology:painting } UNION { ?e rdf:type ontology:painting . ?e property:depicts resource:farmer } }
[]
painting
Q17334748 Q22570045 Q22915291
SYSTEM
A Herdess with Cows on a Country Road in the Rain, Picture clock with Alster panorama, Long Pond, Foot of Red Hill
Q22915291 Q17334748 Q20081287 Q22570045 Q20165836
(c(Q3305213),P180,Q131512) (c(Q3305213),P180,Q1401609) (c(Q3305213),P180,Q4991371)
action union
action filter_type
action find_reverse
entity Q131512
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q1401609
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q4991371
relation P180
type Q3305213
[ANSWERS]
[{'concept': 'Q3305213'}, 'P180', 'Q131512'] [{'concept': 'Q3305213'}, 'P180', 'Q1401609'] [{'concept': 'Q3305213'}, 'P180', 'Q4991371']
SELECT DISTINCT ?e WHERE { { ?e property:P180 resource:Q1401609 . ?e rdf:type ontology:Q3305213 } UNION { ?e rdf:type ontology:Q3305213 . ?e property:P180 resource:Q131512 } }
Long Pond, Foot of Red Hill A Herdess with Cows on a Country Road in the Rain The Sideboard Picture clock with Alster panorama Missed
A Herdess with Cows on a Country Road in the Rain, Picture clock with Alster panorama and Long Pond, Foot of Red Hill demonstrate farmer, vaquero and soldier
A Herdess with Cows on a Country Road in the Rain Picture clock with Alster panorama Long Pond, Foot of Red Hill
action union
action filter_type
action find_reverse
entity farmer
relation depicts
type painting
action filter_type
action find_reverse
entity vaquero
relation depicts
type painting
action filter_type
action find_reverse
entity soldier
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'farmer'] [{'concept': 'painting'}, 'depicts', 'vaquero'] [{'concept': 'painting'}, 'depicts', 'soldier']
SELECT DISTINCT ?e WHERE { { ?e property:depicts resource:vaquero . ?e rdf:type ontology:painting } UNION { ?e rdf:type ontology:painting . ?e property:depicts resource:farmer } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q22915291
P170
Q502895
USER
Who created that painting ?
(Q22915291,P170,c(Q502895))
action filter_type
action find
entity Q22915291
relation P170
type Q502895
['Q22915291', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q22915291 property:P170 ?c . ?c rdf:type ontology:Q502895 }
Long Pond, Foot of Red Hill
action filter_type
action find
entity Long Pond, Foot of Red Hill
relation creator
type common name
['Long Pond, Foot of Red Hill', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Long_Pond,_Foot_of_Red_Hill property:creator ?c . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q22915291
SYSTEM
Did you mean Long Pond, Foot of Red Hill ?
Q17334748 Q22570045 Q22915291
(Q17334748,P170,c(Q502895)) (Q22570045,P170,c(Q502895)) (Q22915291,P170,c(Q502895))
[ANSWER]
['Q17334748', 'P170', {'concept': 'Q502895'}] ['Q22570045', 'P170', {'concept': 'Q502895'}] ['Q22915291', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q22915291 property:P170 ?c . ?c rdf:type ontology:Q502895 }
A Herdess with Cows on a Country Road in the Rain Picture clock with Alster panorama Long Pond, Foot of Red Hill
Did you mean Long Pond, Foot of Red Hill ?
Long Pond, Foot of Red Hill
['A Herdess with Cows on a Country Road in the Rain', 'creator', {'concept': 'common name'}] ['Picture clock with Alster panorama', 'creator', {'concept': 'common name'}] ['Long Pond, Foot of Red Hill', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Long_Pond,_Foot_of_Red_Hill property:creator ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q22915291,P170,c(Q502895))
['Q22915291', 'P170', {'concept': 'Q502895'}]
['Long Pond, Foot of Red Hill', 'creator', {'concept': 'common name'}]
[]
Q1985982
SYSTEM
William Trost Richards
Q1985982
(Q22915291,P170,c(Q502895))
action filter_type
action find
entity Q22915291
relation P170
type Q502895
[ANSWER] created that painting
['Q22915291', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q22915291 property:P170 ?c . ?c rdf:type ontology:Q502895 }
William Trost Richards
William Trost Richards created that painting
William Trost Richards
action filter_type
action find
entity Long Pond, Foot of Red Hill
relation creator
type common name
['Long Pond, Foot of Red Hill', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Long_Pond,_Foot_of_Red_Hill property:creator ?c . ?c rdf:type ontology:common_name }
[]