Simple Question (Direct)
Simple Question
Q297562
P26
Q502895
USER
Who is the spouse of Leopold Stokowski ?
(Q297562,P26,c(Q502895))
action filter_type
action find
entity Q297562
relation P26
type Q502895
['Q297562', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q297562 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Leopold Stokowski
action filter_type
action find
entity Leopold Stokowski
relation spouse
type common name
['Leopold Stokowski', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Leopold_Stokowski property:spouse ?k . ?k rdf:type ontology:common_name }
[]
common name
Q264730
SYSTEM
Gloria Vanderbilt
Q264730
(Q297562,P26,c(Q502895))
action filter_type
action find
entity Q297562
relation P26
type Q502895
The spouse of Leopold Stokowski is the [ANSWER]
['Q297562', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q297562 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Gloria Vanderbilt
The spouse of Leopold Stokowski is the Gloria Vanderbilt
Gloria Vanderbilt
action filter_type
action find
entity Leopold Stokowski
relation spouse
type common name
['Leopold Stokowski', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Leopold_Stokowski property:spouse ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q264730
P463
Q874405
USER
Which social group had that person as its member ?
(Q264730,P463,c(Q874405))
action filter_type
action find
entity Q264730
relation P463
type Q874405
['Q264730', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?m WHERE { resource:Q264730 property:P463 ?m . ?m rdf:type ontology:Q874405 }
Gloria Vanderbilt
action filter_type
action find
entity Gloria Vanderbilt
relation member of
type social group
['Gloria Vanderbilt', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?m WHERE { resource:Gloria_Vanderbilt property:member_of ?m . ?m rdf:type ontology:social_group }
[]
social group
Q284829
SYSTEM
Vanderbilt family
Q284829
(Q264730,P463,c(Q874405))
action filter_type
action find
entity Q264730
relation P463
type Q874405
The [ANSWER] had that person as its member
['Q264730', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?m WHERE { resource:Q264730 property:P463 ?m . ?m rdf:type ontology:Q874405 }
Vanderbilt family
The Vanderbilt family had that person as its member
Vanderbilt family
action filter_type
action find
entity Gloria Vanderbilt
relation member of
type social group
['Gloria Vanderbilt', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?m WHERE { resource:Gloria_Vanderbilt property:member_of ?m . ?m rdf:type ontology:social_group }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q284829 Q6759655
P463
Q502895
USER
Is Margaret Louisa Vanderbilt Shepard a member of that social group ?
(Q6759655,P463,Q284829)
action is_in
entity Q284829
action find
entity Q6759655
relation P463
['Q6759655', 'P463', 'Q284829']
ASK WHERE { resource:Q6759655 property:P463 resource:Q284829 }
Vanderbilt family Margaret Louisa Vanderbilt Shepard
action is_in
entity Vanderbilt family
action find
entity Margaret Louisa Vanderbilt Shepard
relation member of
['Margaret Louisa Vanderbilt Shepard', 'member of', 'Vanderbilt family']
ASK WHERE { resource:Margaret_Louisa_Vanderbilt_Shepard property:member_of resource:Vanderbilt_family }
[]
common name
SYSTEM
YES
(Q6759655,P463,Q284829)
action is_in
entity Q284829
action find
entity Q6759655
relation P463
[ANSWER]
['Q6759655', 'P463', 'Q284829']
ASK WHERE { resource:Q6759655 property:P463 resource:Q284829 }
Yes
action is_in
entity Vanderbilt family
action find
entity Margaret Louisa Vanderbilt Shepard
relation member of
['Margaret Louisa Vanderbilt Shepard', 'member of', 'Vanderbilt family']
ASK WHERE { resource:Margaret_Louisa_Vanderbilt_Shepard property:member_of resource:Vanderbilt_family }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q502895 Q571 Q15416
USER
How many people are the name of the persons who plays a role in atleast 1 books or television programs ?
(c(Q571)|c(Q15416),P674,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q571
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15416
value 1
[[{'concept': 'Q571'}, {'concept': 'Q15416'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { FILTER ( ?f >= 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:P674 ?g . ?g rdf:type ontology:Q502895 . ?r rdf:type ontology:Q571 } UNION { ?r property:P674 ?g . ?r rdf:type ontology:Q15416 . ?g rdf:type ontology:Q502895 } } GROUP BY ?g } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation characters
type common name
type book
action find_reverse_tuple_counts
relation characters
type common name
type television program
value 1
[[{'concept': 'book'}, {'concept': 'television program'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { FILTER ( ?f >= 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:characters ?g . ?g rdf:type ontology:common_name . ?r rdf:type ontology:book } UNION { ?r property:characters ?g . ?r rdf:type ontology:television_program . ?g rdf:type ontology:common_name } } GROUP BY ?g } }
[]
common name book television program
SYSTEM
13
Q272246 Q725118 Q257442 Q2915318 Q7207 Q5343069 Q1979876 Q737786 Q43989 Q8442 Q694093 Q80048 Q1401
(c(Q571)|c(Q15416),P674,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q571
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15416
value 1
[ANSWER]
[[{'concept': 'Q571'}, {'concept': 'Q15416'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { FILTER ( ?f >= 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:P674 ?g . ?g rdf:type ontology:Q502895 . ?r rdf:type ontology:Q571 } UNION { ?r property:P674 ?g . ?r rdf:type ontology:Q15416 . ?g rdf:type ontology:Q502895 } } GROUP BY ?g } }
Johanne Luise Heiberg Carl Christian Hall Sarah Paulson Soupy Sales Elizabeth I of England Edward Garrard Marsh Israel Hands Giuseppe Moscati Grigori Rasputin Otto von Bismarck Ditlev Gothard Monrad Al Capone Petrarch
13
action count
action atleast
action union
action find_reverse_tuple_counts
relation characters
type common name
type book
action find_reverse_tuple_counts
relation characters
type common name
type television program
value 1
[[{'concept': 'book'}, {'concept': 'television program'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { FILTER ( ?f >= 1 ) . { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:characters ?g . ?g rdf:type ontology:common_name . ?r rdf:type ontology:book } UNION { ?r property:characters ?g . ?r rdf:type ontology:television_program . ?g rdf:type ontology:common_name } } GROUP BY ?g } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q264730 Q200661
P106
Q12737077
USER
How many occupations are the professions of Gloria Vanderbilt and Juan Rulfo ?
(Q264730,P106,c(Q12737077)) (Q200661,P106,c(Q12737077))
action count
action intersection
action filter_type
action find
entity Q264730
relation P106
type Q12737077
action filter_type
action find
entity Q200661
relation P106
type Q12737077
['Q264730', 'P106', {'concept': 'Q12737077'}] ['Q200661', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ontology:Q12737077 . resource:Q200661 property:P106 ?z . resource:Q264730 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Gloria Vanderbilt Juan Rulfo
action count
action intersection
action filter_type
action find
entity Gloria Vanderbilt
relation occupation
type occupation
action filter_type
action find
entity Juan Rulfo
relation occupation
type occupation
['Gloria Vanderbilt', 'occupation', {'concept': 'occupation'}] ['Juan Rulfo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ontology:occupation . resource:Juan_Rulfo property:occupation ?z . resource:Gloria_Vanderbilt property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
SYSTEM
2
Q36180 Q6625963
(Q264730,P106,c(Q12737077)) (Q200661,P106,c(Q12737077))
action count
action intersection
action filter_type
action find
entity Q264730
relation P106
type Q12737077
action filter_type
action find
entity Q200661
relation P106
type Q12737077
[ANSWER]
['Q264730', 'P106', {'concept': 'Q12737077'}] ['Q200661', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ontology:Q12737077 . resource:Q200661 property:P106 ?z . resource:Q264730 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
writer novelist
2
action count
action intersection
action filter_type
action find
entity Gloria Vanderbilt
relation occupation
type occupation
action filter_type
action find
entity Juan Rulfo
relation occupation
type occupation
['Gloria Vanderbilt', 'occupation', {'concept': 'occupation'}] ['Juan Rulfo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ontology:occupation . resource:Juan_Rulfo property:occupation ?z . resource:Gloria_Vanderbilt property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P137
Q874405 Q1076486
USER
How many sports venues are the administrator of exactly 1 social group ?
(c(Q1076486),P137,c(Q874405))
action count
action equal
action find_tuple_counts
relation P137
type Q1076486
type Q874405
value 1
[{'concept': 'Q1076486'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?k ) WHERE { ?g rdf:type ontology:Q1076486 . ?n rdf:type ontology:Q874405 . ?g property:P137 ?n } GROUP BY ?g } . FILTER ( ?k = 1 ) }
action count
action equal
action find_tuple_counts
relation operator
type sports venue
type social group
value 1
[{'concept': 'sports venue'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?k ) WHERE { ?g rdf:type ontology:sports_venue . ?n rdf:type ontology:social_group . ?g property:operator ?n } GROUP BY ?g } . FILTER ( ?k = 1 ) }
[]
social group sports venue
SYSTEM
12
Q7040605 Q6429656 Q7081643 Q1190230 Q4739118 Q11586043 Q7181636 Q11548615 Q7830567 Q7828500 Q995550 Q838937
(c(Q1076486),P137,c(Q874405))
action count
action equal
action find_tuple_counts
relation P137
type Q1076486
type Q874405
value 1
[ANSWER]
[{'concept': 'Q1076486'}, 'P137', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?k ) WHERE { ?g rdf:type ontology:Q1076486 . ?n rdf:type ontology:Q874405 . ?g property:P137 ?n } GROUP BY ?g } . FILTER ( ?k = 1 ) }
Nishikyogoku Athletic Stadium Konosu Stadium Ojiyama Stadium Todoroki Athletics Stadium Amagasaki Memorial Park Stadium Ishikawa Kanazawa Stadium PhilSports Football and Athletics Stadium K's denki Stadium Mito Toyama Athletic Stadium Tottori Athletics Stadium Tseung Kwan O Sports Ground Mong Kok Stadium
12
action count
action equal
action find_tuple_counts
relation operator
type sports venue
type social group
value 1
[{'concept': 'sports venue'}, 'operator', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?k ) WHERE { ?g rdf:type ontology:sports_venue . ?n rdf:type ontology:social_group . ?g property:operator ?n } GROUP BY ?g } . FILTER ( ?k = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19019810 Q6759655
P9 P921
Q502895
USER
Which people are Margaret Louisa Vanderbilt Shepard a sibling of or were Faithorne, William (1616-1691) (DNB00) mainly about ?
OR((Q6759655,P9,c(Q502895)), (Q19019810,P921,c(Q502895)))
action filter_type
action union
action find
entity Q6759655
relation P9
action find
entity Q19019810
relation P921
type Q502895
{'OR': [['Q6759655', 'P9', {'concept': 'Q502895'}], ['Q19019810', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q6759655 property:P9 ?f } UNION { resource:Q19019810 property:P921 ?f } } . ?f rdf:type ontology:Q502895 }
Faithorne, William (1616-1691) (DNB00) Margaret Louisa Vanderbilt Shepard
action filter_type
action union
action find
entity Margaret Louisa Vanderbilt Shepard
relation sister
action find
entity Faithorne, William (1616-1691) (DNB00)
relation main subject
type common name
{'OR': [['Margaret Louisa Vanderbilt Shepard', 'sister', {'concept': 'common name'}], ['Faithorne, William (1616-1691) (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Margaret_Louisa_Vanderbilt_Shepard property:sister ?f } UNION { resource:Faithorne,_William_(1616-1691)_(DNB00) property:main_subject ?f } } . ?f rdf:type ontology:common_name }
[]
common name
Q5362177 Q5460545 Q5372398 Q3568608
SYSTEM
Eliza Osgood Vanderbilt Webb, Florence Adele Vanderbilt Twombly, Emily Thorn Vanderbilt, William Faithorne
Q5362177 Q5460545 Q5372398 Q3568608
OR((Q6759655,P9,c(Q502895)), (Q19019810,P921,c(Q502895)))
action filter_type
action union
action find
entity Q6759655
relation P9
action find
entity Q19019810
relation P921
type Q502895
[ANSWERS] are Margaret Louisa Vanderbilt Shepard a sibling of or were Faithorne, William (1616-1691) (DNB00) mainly about
{'OR': [['Q6759655', 'P9', {'concept': 'Q502895'}], ['Q19019810', 'P921', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q6759655 property:P9 ?f } UNION { resource:Q19019810 property:P921 ?f } } . ?f rdf:type ontology:Q502895 }
Eliza Osgood Vanderbilt Webb Florence Adele Vanderbilt Twombly Emily Thorn Vanderbilt William Faithorne
Eliza Osgood Vanderbilt Webb, Florence Adele Vanderbilt Twombly, Emily Thorn Vanderbilt and William Faithorne are Margaret Louisa Vanderbilt Shepard a sibling of or were Faithorne, William (1616-1691) (DNB00) mainly about
Eliza Osgood Vanderbilt Webb Florence Adele Vanderbilt Twombly Emily Thorn Vanderbilt William Faithorne
action filter_type
action union
action find
entity Margaret Louisa Vanderbilt Shepard
relation sister
action find
entity Faithorne, William (1616-1691) (DNB00)
relation main subject
type common name
{'OR': [['Margaret Louisa Vanderbilt Shepard', 'sister', {'concept': 'common name'}], ['Faithorne, William (1616-1691) (DNB00)', 'main subject', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Margaret_Louisa_Vanderbilt_Shepard property:sister ?f } UNION { resource:Faithorne,_William_(1616-1691)_(DNB00) property:main_subject ?f } } . ?f rdf:type ontology:common_name }
[]