Simple Question (Direct)
Simple Question
Q116367
P21
Q290
USER
Which sex does Frederick Haldimand belong to ?
(Q116367,P21,c(Q290))
action filter_type
action find
entity Q116367
relation P21
type Q290
['Q116367', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q116367 property:P21 ?e . ?e rdf:type ontology:Q290 }
Frederick Haldimand
action filter_type
action find
entity Frederick Haldimand
relation gender
type sex
['Frederick Haldimand', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Frederick_Haldimand property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q116367,P21,c(Q290))
action filter_type
action find
entity Q116367
relation P21
type Q290
Frederick Haldimand belongs to [ANSWER]
['Q116367', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q116367 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Frederick Haldimand belongs to male
male
action filter_type
action find
entity Frederick Haldimand
relation gender
type sex
['Frederick Haldimand', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Frederick_Haldimand property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q116367
P921
Q191067
USER
Which article has Frederick Haldimand as its main topic ?
(c(Q191067),P921,Q116367)
action filter_type
action find_reverse
entity Q116367
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q116367']
SELECT DISTINCT ?u WHERE { ?u property:P921 resource:Q116367 . ?u rdf:type ontology:Q191067 }
Frederick Haldimand
action filter_type
action find_reverse
entity Frederick Haldimand
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Frederick Haldimand']
SELECT DISTINCT ?u WHERE { ?u property:main_subject resource:Frederick_Haldimand . ?u rdf:type ontology:article }
[]
article
Q19020115
SYSTEM
Haldimand, Frederick (DNB00)
Q19020115
(c(Q191067),P921,Q116367)
action filter_type
action find_reverse
entity Q116367
relation P921
type Q191067
[ANSWER] has Frederick Haldimand as its main topic
[{'concept': 'Q191067'}, 'P921', 'Q116367']
SELECT DISTINCT ?u WHERE { ?u property:P921 resource:Q116367 . ?u rdf:type ontology:Q191067 }
Haldimand, Frederick (DNB00)
Haldimand, Frederick (DNB00) has Frederick Haldimand as its main topic
Haldimand, Frederick (DNB00)
action filter_type
action find_reverse
entity Frederick Haldimand
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Frederick Haldimand']
SELECT DISTINCT ?u WHERE { ?u property:main_subject resource:Frederick_Haldimand . ?u rdf:type ontology:article }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19020115
P50
Q502895
USER
Who authored that article ?
(Q19020115,P50,c(Q502895))
action filter_type
action find
entity Q19020115
relation P50
type Q502895
['Q19020115', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q19020115 property:P50 ?u . ?u rdf:type ontology:Q502895 }
Haldimand, Frederick (DNB00)
action filter_type
action find
entity Haldimand, Frederick (DNB00)
relation author
type common name
['Haldimand, Frederick (DNB00)', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Haldimand,_Frederick_(DNB00) property:author ?u . ?u rdf:type ontology:common_name }
[]
common name
Q5725423
SYSTEM
Henry Manners Chichester
Q5725423
(Q19020115,P50,c(Q502895))
action filter_type
action find
entity Q19020115
relation P50
type Q502895
[ANSWER] authored that article
['Q19020115', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q19020115 property:P50 ?u . ?u rdf:type ontology:Q502895 }
Henry Manners Chichester
Henry Manners Chichester authored that article
Henry Manners Chichester
action filter_type
action find
entity Haldimand, Frederick (DNB00)
relation author
type common name
['Haldimand, Frederick (DNB00)', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Haldimand,_Frederick_(DNB00) property:author ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19020115
P1433
Q5292
USER
Which encyclopedia was that article published in ?
(Q5725423,P1433,c(Q5292))
action filter_type
action find
entity Q19020115
relation P1433
type Q5292
['Q5725423', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q5292 . resource:Q19020115 property:P1433 ?l }
Haldimand, Frederick (DNB00)
action filter_type
action find
entity Haldimand, Frederick (DNB00)
relation published in
type encyclopedia
['Henry Manners Chichester', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:encyclopedia . resource:Haldimand,_Frederick_(DNB00) property:published_in ?l }
[]
encyclopedia
Q15987216
SYSTEM
Dictionary of National Biography (1885-1900)
Q15987216
(Q5725423,P1433,c(Q5292))
action filter_type
action find
entity Q19020115
relation P1433
type Q5292
That article was published in [ANSWER]
['Q5725423', 'P1433', {'concept': 'Q5292'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q5292 . resource:Q19020115 property:P1433 ?l }
Dictionary of National Biography (1885-1900)
That article was published in Dictionary of National Biography (1885-1900)
Dictionary of National Biography (1885-1900)
action filter_type
action find
entity Haldimand, Frederick (DNB00)
relation published in
type encyclopedia
['Henry Manners Chichester', 'published in', {'concept': 'encyclopedia'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:encyclopedia . resource:Haldimand,_Frederick_(DNB00) property:published_in ?l }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q19045766 Q19020115
P1433
Q5292
USER
And also Milo of Gloucester (DNB00)
AND((Q19020115,P1433,c(Q5292)), (Q19045766,P1433,c(Q5292)))
action filter_type
action intersection
action find
entity Q19020115
relation P1433
action find
entity Q19045766
relation P1433
type Q5292
{'AND': [['Q19020115', 'P1433', {'concept': 'Q5292'}], ['Q19045766', 'P1433', {'concept': 'Q5292'}]]}
SELECT DISTINCT ?q WHERE { resource:Q19045766 property:P1433 ?q . resource:Q19020115 property:P1433 ?q . ?q rdf:type ontology:Q5292 }
Milo of Gloucester (DNB00) Haldimand, Frederick (DNB00)
action filter_type
action intersection
action find
entity Haldimand, Frederick (DNB00)
relation published in
action find
entity Milo of Gloucester (DNB00)
relation published in
type encyclopedia
{'AND': [['Haldimand, Frederick (DNB00)', 'published in', {'concept': 'encyclopedia'}], ['Milo of Gloucester (DNB00)', 'published in', {'concept': 'encyclopedia'}]]}
SELECT DISTINCT ?q WHERE { resource:Milo_of_Gloucester_(DNB00) property:published_in ?q . resource:Haldimand,_Frederick_(DNB00) property:published_in ?q . ?q rdf:type ontology:encyclopedia }
[]
encyclopedia
Q15987216
SYSTEM
Dictionary of National Biography (1885-1900)
Q15987216
AND((Q19020115,P1433,c(Q5292)), (Q19045766,P1433,c(Q5292)))
action filter_type
action intersection
action find
entity Q19020115
relation P1433
action find
entity Q19045766
relation P1433
type Q5292
[ANSWER]
{'AND': [['Q19020115', 'P1433', {'concept': 'Q5292'}], ['Q19045766', 'P1433', {'concept': 'Q5292'}]]}
SELECT DISTINCT ?q WHERE { resource:Q19045766 property:P1433 ?q . resource:Q19020115 property:P1433 ?q . ?q rdf:type ontology:Q5292 }
Dictionary of National Biography (1885-1900)
Dictionary of National Biography (1885-1900)
action filter_type
action intersection
action find
entity Haldimand, Frederick (DNB00)
relation published in
action find
entity Milo of Gloucester (DNB00)
relation published in
type encyclopedia
{'AND': [['Haldimand, Frederick (DNB00)', 'published in', {'concept': 'encyclopedia'}], ['Milo of Gloucester (DNB00)', 'published in', {'concept': 'encyclopedia'}]]}
SELECT DISTINCT ?q WHERE { resource:Milo_of_Gloucester_(DNB00) property:published_in ?q . resource:Haldimand,_Frederick_(DNB00) property:published_in ?q . ?q rdf:type ontology:encyclopedia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 3159 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3159
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?m >= 3159 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3159
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?m >= 3159 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3159
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?m >= 3159 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3159
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?m >= 3159 ) }
[]