Simple Question (Direct)
Simple Question
Q181734
P264
Q334453
USER
Which division is the record label of Annie ?
(Q181734,P264,c(Q334453))
action filter_type
action find
entity Q181734
relation P264
type Q334453
['Q181734', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?f WHERE { resource:Q181734 property:P264 ?f . ?f rdf:type ontology:Q334453 }
Annie
action filter_type
action find
entity Annie
relation record label
type division
['Annie', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?f WHERE { resource:Annie property:record_label ?f . ?f rdf:type ontology:division }
[]
division
Q190585
SYSTEM
Island Records
Q190585
(Q181734,P264,c(Q334453))
action filter_type
action find
entity Q181734
relation P264
type Q334453
Records [ANSWER] is the record label of Annie
['Q181734', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?f WHERE { resource:Q181734 property:P264 ?f . ?f rdf:type ontology:Q334453 }
Island Records
Records Island Records is the record label of Annie
Island Records
action filter_type
action find
entity Annie
relation record label
type division
['Annie', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?f WHERE { resource:Annie property:record_label ?f . ?f rdf:type ontology:division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q190585
P740
Q1048835
USER
Where did that division orginate ?
(Q190585,P740,c(Q1048835))
action filter_type
action find
entity Q190585
relation P740
type Q1048835
['Q190585', 'P740', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q190585 property:P740 ?y . ?y rdf:type ontology:Q1048835 }
Island Records
action filter_type
action find
entity Island Records
relation location of formation
type political territorial entity
['Island Records', 'location of formation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Island_Records property:location_of_formation ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q766
SYSTEM
Jamaica
Q766
(Q190585,P740,c(Q1048835))
action filter_type
action find
entity Q190585
relation P740
type Q1048835
That division orginated to [ANSWER]
['Q190585', 'P740', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q190585 property:P740 ?y . ?y rdf:type ontology:Q1048835 }
Jamaica
That division orginated to Jamaica
Jamaica
action filter_type
action find
entity Island Records
relation location of formation
type political territorial entity
['Island Records', 'location of formation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Island_Records property:location_of_formation ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q190585
P750
Q838948
USER
Which works of art have that division as their distributor ?
(c(Q838948),P750,Q766)
action filter_type
action find_reverse
entity Q190585
relation P750
type Q838948
[{'concept': 'Q838948'}, 'P750', 'Q766']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q838948 . ?d property:P750 resource:Q190585 }
Island Records
action filter_type
action find_reverse
entity Island Records
relation distributor
type work of art
[{'concept': 'work of art'}, 'distributor', 'Jamaica']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:work_of_art . ?d property:distributor resource:Island_Records }
[]
work of art
Q574057 Q2257944 Q745921
SYSTEM
Mona Lisa, She's Gotta Have It, The Lonely Passion of Judith Hearne
Q17151692 Q2257944 Q4997056 Q574057 Q525998 Q7582007 Q745921
(c(Q838948),P750,Q766)
action filter_type
action find_reverse
entity Q190585
relation P750
type Q838948
[ANSWERS] have that division as their distributor
[{'concept': 'Q838948'}, 'P750', 'Q766']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q838948 . ?d property:P750 resource:Q190585 }
The Young Blood Chronicles She's Gotta Have It Bullshot Mona Lisa DeeVeeDee Square Dance The Lonely Passion of Judith Hearne
Mona Lisa, She's Gotta Have It and The Lonely Passion of Judith Hearne have that division as their distributor
Mona Lisa She's Gotta Have It The Lonely Passion of Judith Hearne
action filter_type
action find_reverse
entity Island Records
relation distributor
type work of art
[{'concept': 'work of art'}, 'distributor', 'Jamaica']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:work_of_art . ?d property:distributor resource:Island_Records }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q838948 Q386724
USER
How many works are set up by exactly 5 works of art ?
(c(Q386724),P1445,c(Q838948))
action count
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 5
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?b ) WHERE { ?o property:P1445 ?u . ?o rdf:type ontology:Q386724 . ?u rdf:type ontology:Q838948 } GROUP BY ?o } . FILTER ( ?b = 5 ) }
action count
action equal
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 5
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?b ) WHERE { ?o property:fictional_universe_described_in ?u . ?o rdf:type ontology:work . ?u rdf:type ontology:work_of_art } GROUP BY ?o } . FILTER ( ?b = 5 ) }
[]
work of art work
SYSTEM
1
Q384426
(c(Q386724),P1445,c(Q838948))
action count
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 5
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?b ) WHERE { ?o property:P1445 ?u . ?o rdf:type ontology:Q386724 . ?u rdf:type ontology:Q838948 } GROUP BY ?o } . FILTER ( ?b = 5 ) }
Pirates of the Caribbean
1
action count
action equal
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 5
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?b ) WHERE { ?o property:fictional_universe_described_in ?u . ?o rdf:type ontology:work . ?u rdf:type ontology:work_of_art } GROUP BY ?o } . FILTER ( ?b = 5 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43327
P159
Q56061
USER
Where is the head office for Motown located ?
(Q43327,P159,c(Q56061))
action filter_type
action find
entity Q43327
relation P159
type Q56061
['Q43327', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q43327 property:P159 ?d . ?d rdf:type ontology:Q56061 }
Motown
action filter_type
action find
entity Motown
relation headquarters location
type administrative territorial entity
['Motown', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Motown property:headquarters_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q12439
SYSTEM
Detroit
Q12439
(Q43327,P159,c(Q56061))
action filter_type
action find
entity Q43327
relation P159
type Q56061
The head office for Motown is located in [ANSWER]
['Q43327', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q43327 property:P159 ?d . ?d rdf:type ontology:Q56061 }
Detroit
The head office for Motown is located in Detroit
Detroit
action filter_type
action find
entity Motown
relation headquarters location
type administrative territorial entity
['Motown', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Motown property:headquarters_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5204974
Q56061
USER
And what about DGSE Companies?
(Q5204974,P159,c(Q56061))
action filter_type
action find
entity Q5204974
relation P159
type Q56061
['Q5204974', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q5204974 property:P159 ?w . ?w rdf:type ontology:Q56061 }
DGSE Companies
action filter_type
action find
entity DGSE Companies
relation headquarters location
type administrative territorial entity
['DGSE Companies', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:DGSE_Companies property:headquarters_location ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16557
SYSTEM
Dallas
Q16557
(Q5204974,P159,c(Q56061))
action filter_type
action find
entity Q5204974
relation P159
type Q56061
[ANSWER]
['Q5204974', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q5204974 property:P159 ?w . ?w rdf:type ontology:Q56061 }
Dallas
Dallas
action filter_type
action find
entity DGSE Companies
relation headquarters location
type administrative territorial entity
['DGSE Companies', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:DGSE_Companies property:headquarters_location ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5204974
P17
Q15617994
USER
Which administrative territory does that organization belong to ?
(Q16557,P17,c(Q15617994))
action filter_type
action find
entity Q5204974
relation P17
type Q15617994
['Q16557', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q5204974 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
DGSE Companies
action filter_type
action find
entity DGSE Companies
relation country
type designation for an administrative territorial entity
['Dallas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:DGSE_Companies property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q16557,P17,c(Q15617994))
action filter_type
action find
entity Q5204974
relation P17
type Q15617994
That organization belongs to the [ANSWER]
['Q16557', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q5204974 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
United States of America
That organization belongs to the United States of America
United States of America
action filter_type
action find
entity DGSE Companies
relation country
type designation for an administrative territorial entity
['Dallas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:DGSE_Companies property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q4952322 Q159
P530
Q15617994
USER
Does that administrative territory have diplomatic associations with Boyd County Public Schools and Russia ?
(Q30,P530,Q4952322) (Q30,P530,Q159)
action is_in
entity Q30
action intersection
action find_reverse
entity Q4952322
relation P530
action find_reverse
entity Q159
relation P530
['Q30', 'P530', 'Q4952322'] ['Q30', 'P530', 'Q159']
ASK WHERE { resource:Q30 property:P530 resource:Q4952322 . resource:Q30 property:P530 resource:Q159 }
United States of America Boyd County Public Schools Russia
action is_in
entity United States of America
action intersection
action find_reverse
entity Boyd County Public Schools
relation diplomatic relation
action find_reverse
entity Russia
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Boyd County Public Schools'] ['United States of America', 'diplomatic relation', 'Russia']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Boyd_County_Public_Schools . resource:United_States_of_America property:diplomatic_relation resource:Russia }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q30,P530,Q4952322) (Q30,P530,Q159)
action is_in
entity Q30
action intersection
action find_reverse
entity Q4952322
relation P530
action find_reverse
entity Q159
relation P530
[ANSWER]
['Q30', 'P530', 'Q4952322'] ['Q30', 'P530', 'Q159']
ASK WHERE { resource:Q30 property:P530 resource:Q4952322 . resource:Q30 property:P530 resource:Q159 }
NO and YES respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Boyd County Public Schools
relation diplomatic relation
action find_reverse
entity Russia
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Boyd County Public Schools'] ['United States of America', 'diplomatic relation', 'Russia']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Boyd_County_Public_Schools . resource:United_States_of_America property:diplomatic_relation resource:Russia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16557 Q214173 Q1867
P190
Q56061
USER
Is Dallas twin city of Trujillo and Taipei ?
(Q16557,P190,Q214173) (Q16557,P190,Q1867)
action is_in
entity Q16557
action intersection
action find_reverse
entity Q214173
relation P190
action find_reverse
entity Q1867
relation P190
['Q16557', 'P190', 'Q214173'] ['Q16557', 'P190', 'Q1867']
ASK WHERE { resource:Q16557 property:P190 resource:Q1867 . resource:Q16557 property:P190 resource:Q214173 }
Dallas Trujillo Taipei
action is_in
entity Dallas
action intersection
action find_reverse
entity Trujillo
relation sister city
action find_reverse
entity Taipei
relation sister city
['Dallas', 'sister city', 'Trujillo'] ['Dallas', 'sister city', 'Taipei']
ASK WHERE { resource:Dallas property:sister_city resource:Taipei . resource:Dallas property:sister_city resource:Trujillo }
[]
administrative territorial entity
SYSTEM
YES
(Q16557,P190,Q214173) (Q16557,P190,Q1867)
action is_in
entity Q16557
action intersection
action find_reverse
entity Q214173
relation P190
action find_reverse
entity Q1867
relation P190
[ANSWER]
['Q16557', 'P190', 'Q214173'] ['Q16557', 'P190', 'Q1867']
ASK WHERE { resource:Q16557 property:P190 resource:Q1867 . resource:Q16557 property:P190 resource:Q214173 }
Yes
action is_in
entity Dallas
action intersection
action find_reverse
entity Trujillo
relation sister city
action find_reverse
entity Taipei
relation sister city
['Dallas', 'sister city', 'Trujillo'] ['Dallas', 'sister city', 'Taipei']
ASK WHERE { resource:Dallas property:sister_city resource:Taipei . resource:Dallas property:sister_city resource:Trujillo }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q12439 Q30
P17
Q15617994
USER
Is Detroit present in United States of America ?
(Q12439,P17,Q30)
action is_in
entity Q30
action find
entity Q12439
relation P17
['Q12439', 'P17', 'Q30']
ASK WHERE { resource:Q12439 property:P17 resource:Q30 }
Detroit United States of America
action is_in
entity United States of America
action find
entity Detroit
relation country
['Detroit', 'country', 'United States of America']
ASK WHERE { resource:Detroit property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q12439,P17,Q30)
action is_in
entity Q30
action find
entity Q12439
relation P17
[ANSWER]
['Q12439', 'P17', 'Q30']
ASK WHERE { resource:Q12439 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Detroit
relation country
['Detroit', 'country', 'United States of America']
ASK WHERE { resource:Detroit property:country resource:United_States_of_America }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q781
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with greater number of administrative territories than Antigua and Barbuda ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?m ) WHERE { ?d property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } GROUP BY ?d } . FILTER ( ?m > ?s ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { resource:Q781 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } }
Antigua and Barbuda
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?m ) WHERE { ?d property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?d } . FILTER ( ?m > ?s ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?m ) WHERE { ?d property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } GROUP BY ?d } . FILTER ( ?m > ?s ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { resource:Q781 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?m ) WHERE { ?d property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?d } . FILTER ( ?m > ?s ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1460580 Q30
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with United States of America and are Friedrich Krotz an inhabitant of ?
AND((Q30,P530,c(Q1048835)), (Q1460580,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q30
relation P530
action find
entity Q1460580
relation P27
type Q1048835
{'AND': [['Q30', 'P530', {'concept': 'Q1048835'}], ['Q1460580', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { resource:Q30 property:P530 ?j . resource:Q1460580 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Friedrich Krotz United States of America
action filter_type
action intersection
action find
entity United States of America
relation diplomatic relation
action find
entity Friedrich Krotz
relation country of citizenship
type political territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Friedrich Krotz', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:United_States_of_America property:diplomatic_relation ?j . resource:Friedrich_Krotz property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q30,P530,c(Q1048835)), (Q1460580,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q30
relation P530
action find
entity Q1460580
relation P27
type Q1048835
[ANSWER] have diplomatic relationships with United States of America and are Friedrich Krotz an inhabitant of
{'AND': [['Q30', 'P530', {'concept': 'Q1048835'}], ['Q1460580', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { resource:Q30 property:P530 ?j . resource:Q1460580 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Germany
Germany have diplomatic relationships with United States of America and are Friedrich Krotz an inhabitant of
Germany
action filter_type
action intersection
action find
entity United States of America
relation diplomatic relation
action find
entity Friedrich Krotz
relation country of citizenship
type political territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Friedrich Krotz', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:United_States_of_America property:diplomatic_relation ?j . resource:Friedrich_Krotz property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1460580
P21
Q290
USER
What is the sex of that person ?
(Q183,P21,c(Q290))
action filter_type
action find
entity Q1460580
relation P21
type Q290
['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1460580 property:P21 ?i . ?i rdf:type ontology:Q290 }
Friedrich Krotz
action filter_type
action find
entity Friedrich Krotz
relation gender
type sex
['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Friedrich_Krotz property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q183,P21,c(Q290))
action filter_type
action find
entity Q1460580
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1460580 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Friedrich Krotz
relation gender
type sex
['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Friedrich_Krotz property:gender ?i . ?i rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3330900 Q30
P6 P175
Q502895
USER
Which people have United States of America as their heads of government or were presented by Choices ?
OR((Q30,P6,c(Q502895)), (Q3330900,P175,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q3330900
relation P175
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q3330900', 'P175', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q30 property:P6 ?t } UNION { resource:Q3330900 property:P175 ?t } } . ?t rdf:type ontology:Q502895 }
Choices United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Choices
relation performer
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Choices', 'performer', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { { { resource:United_States_of_America property:head_of_government ?t } UNION { resource:Choices property:performer ?t } } . ?t rdf:type ontology:common_name }
[]
common name
Q76 Q11896 Q35286 Q11813 Q11869 Q12325 Q11812 Q91 Q9916 Q11806
SYSTEM
Some of them are Barack Obama, Zachary Taylor, Warren G. Harding, James Madison, William Henry Harrison, James Buchanan, Thomas Jefferson, Abraham Lincoln, Dwight D. Eisenhower, John Adams
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q35498 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q34836 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q508202 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q3330900,P175,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q3330900
relation P175
type Q502895
[ANSWERS] have United States of America as their heads of government or were presented by Choices
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q3330900', 'P175', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q30 property:P6 ?t } UNION { resource:Q3330900 property:P175 ?t } } . ?t rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Chester A. Arthur Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Ulysses S. Grant Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson George Jones George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
Barack Obama, Zachary Taylor, Warren G. Harding, James Madison, William Henry Harrison, James Buchanan, Thomas Jefferson, Abraham Lincoln, Dwight D. Eisenhower and John Adams have United States of America as their heads of government or were presented by Choices
Barack Obama Zachary Taylor Warren G. Harding James Madison William Henry Harrison James Buchanan Thomas Jefferson Abraham Lincoln Dwight D. Eisenhower John Adams
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Choices
relation performer
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Choices', 'performer', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { { { resource:United_States_of_America property:head_of_government ?t } UNION { resource:Choices property:performer ?t } } . ?t rdf:type ontology:common_name }
[]