Simple Question (Direct)
Simple Question
Q7299055
P172
Q2472587
USER
Which ethnic group does Raymond P. Moore belong ?
(Q7299055,P172,c(Q2472587))
action filter_type
action find
entity Q7299055
relation P172
type Q2472587
['Q7299055', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?r WHERE { resource:Q7299055 property:P172 ?r . ?r rdf:type ontology:Q2472587 }
Raymond P. Moore
action filter_type
action find
entity Raymond P. Moore
relation ethnic group
type people
['Raymond P. Moore', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?r WHERE { resource:Raymond_P._Moore property:ethnic_group ?r . ?r rdf:type ontology:people }
[]
people
Q49085
SYSTEM
African Americans
Q49085
(Q7299055,P172,c(Q2472587))
action filter_type
action find
entity Q7299055
relation P172
type Q2472587
[ANSWER] does Raymond P. Moore belong
['Q7299055', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?r WHERE { resource:Q7299055 property:P172 ?r . ?r rdf:type ontology:Q2472587 }
African Americans
African Americans does Raymond P. Moore belong
African Americans
action filter_type
action find
entity Raymond P. Moore
relation ethnic group
type people
['Raymond P. Moore', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?r WHERE { resource:Raymond_P._Moore property:ethnic_group ?r . ?r rdf:type ontology:people }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7299055
P734
Q82799
USER
Which name is associated with Raymond P. Moore ?
(Q7299055,P734,c(Q82799))
action filter_type
action find
entity Q7299055
relation P734
type Q82799
['Q7299055', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q7299055 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Raymond P. Moore
action filter_type
action find
entity Raymond P. Moore
relation family name
type name
['Raymond P. Moore', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Raymond_P._Moore property:family_name ?p . ?p rdf:type ontology:name }
[]
name
Q21484731
SYSTEM
Moore
Q21484731
(Q7299055,P734,c(Q82799))
action filter_type
action find
entity Q7299055
relation P734
type Q82799
[ANSWER] is associated with Raymond P. [ANSWER]
['Q7299055', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q7299055 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Moore
Moore is associated with Raymond P. Moore
Moore
action filter_type
action find
entity Raymond P. Moore
relation family name
type name
['Raymond P. Moore', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Raymond_P._Moore property:family_name ?p . ?p rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q817863
Q82799
USER
And also tell me about Bennett Miller?
(Q817863,P734,c(Q82799))
action filter_type
action find
entity Q817863
relation P734
type Q82799
['Q817863', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q817863 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Bennett Miller
action filter_type
action find
entity Bennett Miller
relation family name
type name
['Bennett Miller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Bennett_Miller property:family_name ?i . ?i rdf:type ontology:name }
[]
name
Q1605060
SYSTEM
Miller
Q1605060
(Q817863,P734,c(Q82799))
action filter_type
action find
entity Q817863
relation P734
type Q82799
[ANSWER]
['Q817863', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q817863 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Miller
Miller
action filter_type
action find
entity Bennett Miller
relation family name
type name
['Bennett Miller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Bennett_Miller property:family_name ?i . ?i rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q817863
P1411
Q4220917
USER
Which film award was that person nominated for ?
(Q1605060,P1411,c(Q4220917))
action filter_type
action find
entity Q817863
relation P1411
type Q4220917
['Q1605060', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q4220917 . resource:Q817863 property:P1411 ?g }
Bennett Miller
action filter_type
action find
entity Bennett Miller
relation nominated for
type film award
['Miller', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:film_award . resource:Bennett_Miller property:nominated_for ?g }
[]
film award
Q103360
SYSTEM
Academy Award for Best Director
Q103360
(Q1605060,P1411,c(Q4220917))
action filter_type
action find
entity Q817863
relation P1411
type Q4220917
That person was nominated for [ANSWER]
['Q1605060', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q4220917 . resource:Q817863 property:P1411 ?g }
Academy Award for Best Director
That person was nominated for Academy Award for Best Director
Academy Award for Best Director
action filter_type
action find
entity Bennett Miller
relation nominated for
type film award
['Miller', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:film_award . resource:Bennett_Miller property:nominated_for ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1463322
P106
Q28640
USER
Which professions are the professions of Stephanie Rothman ?
(Q1463322,P106,c(Q28640))
action filter_type
action find
entity Q1463322
relation P106
type Q28640
['Q1463322', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?y WHERE { resource:Q1463322 property:P106 ?y . ?y rdf:type ontology:Q28640 }
Stephanie Rothman
action filter_type
action find
entity Stephanie Rothman
relation occupation
type profession
['Stephanie Rothman', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?y WHERE { resource:Stephanie_Rothman property:occupation ?y . ?y rdf:type ontology:profession }
[]
profession
Q2526255 Q3282637 Q28389
SYSTEM
film director, film producer, screenwriter
Q2526255 Q3282637 Q28389
(Q1463322,P106,c(Q28640))
action filter_type
action find
entity Q1463322
relation P106
type Q28640
The professions of Stephanie Rothman are a [ANSWERS]
['Q1463322', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?y WHERE { resource:Q1463322 property:P106 ?y . ?y rdf:type ontology:Q28640 }
film director film producer screenwriter
The professions of Stephanie Rothman are a film director, film producer and screenwriter
film director film producer screenwriter
action filter_type
action find
entity Stephanie Rothman
relation occupation
type profession
['Stephanie Rothman', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?y WHERE { resource:Stephanie_Rothman property:occupation ?y . ?y rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1463322
P27
Q15617994
USER
Which administrative territory is the native country of Stephanie Rothman ?
(Q1463322,P27,c(Q15617994))
action filter_type
action find
entity Q1463322
relation P27
type Q15617994
['Q1463322', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q1463322 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Stephanie Rothman
action filter_type
action find
entity Stephanie Rothman
relation country of citizenship
type designation for an administrative territorial entity
['Stephanie Rothman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Stephanie_Rothman property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1463322,P27,c(Q15617994))
action filter_type
action find
entity Q1463322
relation P27
type Q15617994
The [ANSWER] is the native country of Stephanie Rothman
['Q1463322', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q1463322 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
United States of America
The United States of America is the native country of Stephanie Rothman
United States of America
action filter_type
action find
entity Stephanie Rothman
relation country of citizenship
type designation for an administrative territorial entity
['Stephanie Rothman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Stephanie_Rothman property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11851535
Q15617994
USER
And what about Anna-Liisa Kurki?
(Q11851535,P27,c(Q15617994))
action filter_type
action find
entity Q11851535
relation P27
type Q15617994
['Q11851535', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q11851535 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Anna-Liisa Kurki
action filter_type
action find
entity Anna-Liisa Kurki
relation country of citizenship
type designation for an administrative territorial entity
['Anna-Liisa Kurki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Anna-Liisa_Kurki property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
(Q11851535,P27,c(Q15617994))
action filter_type
action find
entity Q11851535
relation P27
type Q15617994
[ANSWER]
['Q11851535', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q11851535 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Finland
Finland
action filter_type
action find
entity Anna-Liisa Kurki
relation country of citizenship
type designation for an administrative territorial entity
['Anna-Liisa Kurki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Anna-Liisa_Kurki property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q33 Q16 Q4512385
P530
Q1048835
USER
Does Finland have tactful political relations with Canada and Luky ?
(Q33,P530,Q16) (Q33,P530,Q4512385)
action is_in
entity Q33
action intersection
action find_reverse
entity Q16
relation P530
action find_reverse
entity Q4512385
relation P530
['Q33', 'P530', 'Q16'] ['Q33', 'P530', 'Q4512385']
ASK WHERE { resource:Q33 property:P530 resource:Q4512385 . resource:Q33 property:P530 resource:Q16 }
Finland Canada Luky
action is_in
entity Finland
action intersection
action find_reverse
entity Canada
relation diplomatic relation
action find_reverse
entity Luky
relation diplomatic relation
['Finland', 'diplomatic relation', 'Canada'] ['Finland', 'diplomatic relation', 'Luky']
ASK WHERE { resource:Finland property:diplomatic_relation resource:Luky . resource:Finland property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q33,P530,Q16) (Q33,P530,Q4512385)
action is_in
entity Q33
action intersection
action find_reverse
entity Q16
relation P530
action find_reverse
entity Q4512385
relation P530
[ANSWER]
['Q33', 'P530', 'Q16'] ['Q33', 'P530', 'Q4512385']
ASK WHERE { resource:Q33 property:P530 resource:Q4512385 . resource:Q33 property:P530 resource:Q16 }
YES and NO respectively
action is_in
entity Finland
action intersection
action find_reverse
entity Canada
relation diplomatic relation
action find_reverse
entity Luky
relation diplomatic relation
['Finland', 'diplomatic relation', 'Canada'] ['Finland', 'diplomatic relation', 'Luky']
ASK WHERE { resource:Finland property:diplomatic_relation resource:Luky . resource:Finland property:diplomatic_relation resource:Canada }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q56061 Q15617994 Q82799
USER
How many names are named after atleast 1 administrative territories and administrative territories ?
(c(Q82799),P138,c(Q56061)|c(Q15617994))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q15617994
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) ?l WHERE { { ?l property:P138 ?q . ?l rdf:type ontology:Q82799 . ?q rdf:type ontology:Q56061 } UNION { ?l property:P138 ?q . ?l rdf:type ontology:Q82799 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?l } . FILTER ( ?z >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) ?l WHERE { { ?l property:named_after ?q . ?l rdf:type ontology:name . ?q rdf:type ontology:administrative_territorial_entity } UNION { ?l property:named_after ?q . ?l rdf:type ontology:name . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?l } . FILTER ( ?z >= 1 ) }
[]
administrative territorial entity designation for an administrative territorial entity name
SYSTEM
4
Q23688105 Q22922124 Q16877784 Q24229341
(c(Q82799),P138,c(Q56061)|c(Q15617994))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) ?l WHERE { { ?l property:P138 ?q . ?l rdf:type ontology:Q82799 . ?q rdf:type ontology:Q56061 } UNION { ?l property:P138 ?q . ?l rdf:type ontology:Q82799 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?l } . FILTER ( ?z >= 1 ) }
de Bragança von Mecklenburg-Schwerin Napoli Toscano
4
action count
action atleast
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) ?l WHERE { { ?l property:named_after ?q . ?l rdf:type ontology:name . ?q rdf:type ontology:administrative_territorial_entity } UNION { ?l property:named_after ?q . ?l rdf:type ontology:name . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?l } . FILTER ( ?z >= 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q192557 Q3282637
P425 P452
Q268592
USER
Which economic branches have film producer as thier associated field of occupation and are the industries DreamWorks belongs to ?
AND((Q3282637,P425,c(Q268592)), (Q192557,P452,c(Q268592)))
action filter_type
action intersection
action find
entity Q3282637
relation P425
action find
entity Q192557
relation P452
type Q268592
{'AND': [['Q3282637', 'P425', {'concept': 'Q268592'}], ['Q192557', 'P452', {'concept': 'Q268592'}]]}
SELECT DISTINCT ?v WHERE { resource:Q3282637 property:P425 ?v . resource:Q192557 property:P452 ?v . ?v rdf:type ontology:Q268592 }
DreamWorks film producer
action filter_type
action intersection
action find
entity film producer
relation field of this occupation
action find
entity DreamWorks
relation industry
type economic branch
{'AND': [['film producer', 'field of this occupation', {'concept': 'economic branch'}], ['DreamWorks', 'industry', {'concept': 'economic branch'}]]}
SELECT DISTINCT ?v WHERE { resource:film_producer property:field_of_this_occupation ?v . resource:DreamWorks property:industry ?v . ?v rdf:type ontology:economic_branch }
[]
economic branch
Q932586
SYSTEM
filmmaking
Q932586
AND((Q3282637,P425,c(Q268592)), (Q192557,P452,c(Q268592)))
action filter_type
action intersection
action find
entity Q3282637
relation P425
action find
entity Q192557
relation P452
type Q268592
The [ANSWER] have film producer as thier associated field of occupation and are the industries DreamWorks belongs to
{'AND': [['Q3282637', 'P425', {'concept': 'Q268592'}], ['Q192557', 'P452', {'concept': 'Q268592'}]]}
SELECT DISTINCT ?v WHERE { resource:Q3282637 property:P425 ?v . resource:Q192557 property:P452 ?v . ?v rdf:type ontology:Q268592 }
filmmaking
The filmmaking have film producer as thier associated field of occupation and are the industries DreamWorks belongs to
filmmaking
action filter_type
action intersection
action find
entity film producer
relation field of this occupation
action find
entity DreamWorks
relation industry
type economic branch
{'AND': [['film producer', 'field of this occupation', {'concept': 'economic branch'}], ['DreamWorks', 'industry', {'concept': 'economic branch'}]]}
SELECT DISTINCT ?v WHERE { resource:film_producer property:field_of_this_occupation ?v . resource:DreamWorks property:industry ?v . ?v rdf:type ontology:economic_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q192557
P127
Q375336
USER
Which film studio is owned by that one ?
(c(Q375336),P127,Q932586)
action filter_type
action find_reverse
entity Q192557
relation P127
type Q375336
[{'concept': 'Q375336'}, 'P127', 'Q932586']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q375336 . ?y property:P127 resource:Q192557 }
DreamWorks
action filter_type
action find_reverse
entity DreamWorks
relation owned by
type film studio
[{'concept': 'film studio'}, 'owned by', 'filmmaking']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:film_studio . ?y property:owned_by resource:DreamWorks }
[]
film studio
Q500088
SYSTEM
DreamWorks Animation
Q500088
(c(Q375336),P127,Q932586)
action filter_type
action find_reverse
entity Q192557
relation P127
type Q375336
[ANSWER] is owned by that one
[{'concept': 'Q375336'}, 'P127', 'Q932586']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q375336 . ?y property:P127 resource:Q192557 }
DreamWorks Animation
DreamWorks Animation is owned by that one
DreamWorks Animation
action filter_type
action find_reverse
entity DreamWorks
relation owned by
type film studio
[{'concept': 'film studio'}, 'owned by', 'filmmaking']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:film_studio . ?y property:owned_by resource:DreamWorks }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q500088 Q27653473
P108
Q502895
USER
Does Michael Surrey work for that film studio ?
(Q27653473,P108,Q500088)
action is_in
entity Q500088
action find
entity Q27653473
relation P108
['Q27653473', 'P108', 'Q500088']
ASK WHERE { resource:Q27653473 property:P108 resource:Q500088 }
DreamWorks Animation Michael Surrey
action is_in
entity DreamWorks Animation
action find
entity Michael Surrey
relation employer
['Michael Surrey', 'employer', 'DreamWorks Animation']
ASK WHERE { resource:Michael_Surrey property:employer resource:DreamWorks_Animation }
[]
common name
SYSTEM
YES
(Q27653473,P108,Q500088)
action is_in
entity Q500088
action find
entity Q27653473
relation P108
[ANSWER]
['Q27653473', 'P108', 'Q500088']
ASK WHERE { resource:Q27653473 property:P108 resource:Q500088 }
Yes
action is_in
entity DreamWorks Animation
action find
entity Michael Surrey
relation employer
['Michael Surrey', 'employer', 'DreamWorks Animation']
ASK WHERE { resource:Michael_Surrey property:employer resource:DreamWorks_Animation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2778111
P248
Q11032 Q163740 Q502895
USER
Which people have been mentioned in more number of newspapers or nonprofit organizations than Greg Smith ?
(c(Q502895),P248,c(Q11032)|c(Q163740))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q163740
action count
action filter_multi_types
action find
entity Q2778111
relation P248
type Q11032
type Q163740
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q163740'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?u ) WHERE { { ?b property:P248 ?s . ?b rdf:type ontology:Q502895 . ?s rdf:type ontology:Q11032 } UNION { ?b rdf:type ontology:Q502895 . ?s rdf:type ontology:Q163740 . ?b property:P248 ?s } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Q2778111 property:P248 ?k . { ?k rdf:type ?m . VALUES ( ?m ) { ( ontology:Q11032 ) ( ontology:Q163740 ) } } } } . FILTER ( ?u > ?e ) }
Greg Smith
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action count
action filter_multi_types
action find
entity Greg Smith
relation stated in
type newspaper
type nonprofit organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'nonprofit organization'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?u ) WHERE { { ?b property:stated_in ?s . ?b rdf:type ontology:common_name . ?s rdf:type ontology:newspaper } UNION { ?b rdf:type ontology:common_name . ?s rdf:type ontology:nonprofit_organization . ?b property:stated_in ?s } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Greg_Smith property:stated_in ?k . { ?k rdf:type ?m . VALUES ( ?m ) { ( ontology:newspaper ) ( ontology:nonprofit_organization ) } } } } . FILTER ( ?u > ?e ) }
[]
newspaper nonprofit organization common name
Q5239881 Q5233457 Q5537324
SYSTEM
David Smith, David Evans, George Brown
Q6249889 Q9069823 Q7351128 Q6262713 Q8020385 Q5239881 Q8019902 Q15637844 Q5233453 Q5233457 Q6239258 Q8020394 Q8020390 Q6237318 Q6257915 Q9311159 Q5537324 Q6246961 Q8020402 Q15990004
(c(Q502895),P248,c(Q11032)|c(Q163740))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q163740
action count
action filter_multi_types
action find
entity Q2778111
relation P248
type Q11032
type Q163740
[ANSWERS] have been mentioned in more number of newspapers or nonprofit organizations than Greg Smith
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q163740'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?u ) WHERE { { ?b property:P248 ?s . ?b rdf:type ontology:Q502895 . ?s rdf:type ontology:Q11032 } UNION { ?b rdf:type ontology:Q502895 . ?s rdf:type ontology:Q163740 . ?b property:P248 ?s } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Q2778111 property:P248 ?k . { ?k rdf:type ?m . VALUES ( ?m ) { ( ontology:Q11032 ) ( ontology:Q163740 ) } } } } . FILTER ( ?u > ?e ) }
John Murphy Robert Williams Robert Williams John Walker William Williams David Smith William Walker David Smith David Evans David Evans John Hill William Williams William Williams John Hall John Simpson Robert Williams George Brown John Martin William Williams John Gray
David Smith, David Evans and George Brown have been mentioned in more number of newspapers or nonprofit organizations than Greg Smith
David Smith David Evans George Brown
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action count
action filter_multi_types
action find
entity Greg Smith
relation stated in
type newspaper
type nonprofit organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'nonprofit organization'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?u ) WHERE { { ?b property:stated_in ?s . ?b rdf:type ontology:common_name . ?s rdf:type ontology:newspaper } UNION { ?b rdf:type ontology:common_name . ?s rdf:type ontology:nonprofit_organization . ?b property:stated_in ?s } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Greg_Smith property:stated_in ?k . { ?k rdf:type ?m . VALUES ( ?m ) { ( ontology:newspaper ) ( ontology:nonprofit_organization ) } } } } . FILTER ( ?u > ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q17385895
P248
Q11032 Q163740 Q502895
USER
And what about David Evans?
(c(Q502895),P248,c(Q11032)|c(Q163740))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q163740
action count
action filter_multi_types
action find
entity Q17385895
relation P248
type Q11032
type Q163740
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q163740'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q11032 ) ( ontology:Q163740 ) } } GROUP BY ?l } . FILTER ( ?p > ?d ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { resource:Q17385895 property:P248 ?g . { { ?g rdf:type ontology:Q11032 } UNION { ?g rdf:type ontology:Q163740 } } } } }
David Evans
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action count
action filter_multi_types
action find
entity David Evans
relation stated in
type newspaper
type nonprofit organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'nonprofit organization'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:newspaper ) ( ontology:nonprofit_organization ) } } GROUP BY ?l } . FILTER ( ?p > ?d ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { resource:David_Evans property:stated_in ?g . { { ?g rdf:type ontology:newspaper } UNION { ?g rdf:type ontology:nonprofit_organization } } } } }
[]
newspaper nonprofit organization common name
Q5239881 Q5233457 Q5537324
SYSTEM
David Smith, David Evans, George Brown
Q6249889 Q9069823 Q7351128 Q6262713 Q8020385 Q5239881 Q8019902 Q15637844 Q5233453 Q5233457 Q6239258 Q8020394 Q8020390 Q6237318 Q6257915 Q9311159 Q5537324 Q6246961 Q8020402 Q15990004
(c(Q502895),P248,c(Q11032)|c(Q163740))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q163740
action count
action filter_multi_types
action find
entity Q17385895
relation P248
type Q11032
type Q163740
[ANSWERS]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q163740'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q11032 ) ( ontology:Q163740 ) } } GROUP BY ?l } . FILTER ( ?p > ?d ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { resource:Q17385895 property:P248 ?g . { { ?g rdf:type ontology:Q11032 } UNION { ?g rdf:type ontology:Q163740 } } } } }
John Murphy Robert Williams Robert Williams John Walker William Williams David Smith William Walker David Smith David Evans David Evans John Hill William Williams William Williams John Hall John Simpson Robert Williams George Brown John Martin William Williams John Gray
David Smith David Evans George Brown
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action count
action filter_multi_types
action find
entity David Evans
relation stated in
type newspaper
type nonprofit organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'nonprofit organization'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:newspaper ) ( ontology:nonprofit_organization ) } } GROUP BY ?l } . FILTER ( ?p > ?d ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { resource:David_Evans property:stated_in ?g . { { ?g rdf:type ontology:newspaper } UNION { ?g rdf:type ontology:nonprofit_organization } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q5239881
P937
Q56061
USER
How many administrative territories are the locations where David Smith worked ?
(Q5239881,P937,c(Q56061))
action count
action filter_type
action find
entity Q5239881
relation P937
type Q56061
['Q5239881', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?y rdf:type ontology:Q56061 . resource:Q5239881 property:P937 ?y }
David Smith
action count
action filter_type
action find
entity David Smith
relation work location
type administrative territorial entity
['David Smith', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:David_Smith property:work_location ?y }
[]
administrative territorial entity
SYSTEM
1
Q84
(Q5239881,P937,c(Q56061))
action count
action filter_type
action find
entity Q5239881
relation P937
type Q56061
[ANSWER]
['Q5239881', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?y rdf:type ontology:Q56061 . resource:Q5239881 property:P937 ?y }
London
1
action count
action filter_type
action find
entity David Smith
relation work location
type administrative territorial entity
['David Smith', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:David_Smith property:work_location ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5239881
P1412
Q34770
USER
Which language is spoken by David Smith ?
(Q5239881,P1412,c(Q34770))
action filter_type
action find
entity Q5239881
relation P1412
type Q34770
['Q5239881', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q5239881 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
David Smith
action filter_type
action find
entity David Smith
relation languages spoken, written or signed
type language
['David Smith', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:David_Smith property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q5239881,P1412,c(Q34770))
action filter_type
action find
entity Q5239881
relation P1412
type Q34770
Is [ANSWER] is spoken by David Smith
['Q5239881', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q5239881 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
English
Is English is spoken by David Smith
English
action filter_type
action find
entity David Smith
relation languages spoken, written or signed
type language
['David Smith', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:David_Smith property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]