Simple Question (Direct)
Simple Question
Q2573187
P21
Q290
USER
Which sex does Mark Madsen belong to ?
(Q2573187,P21,c(Q290))
action filter_type
action find
entity Q2573187
relation P21
type Q290
['Q2573187', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q2573187 property:P21 ?j . ?j rdf:type ontology:Q290 }
Mark Madsen
action filter_type
action find
entity Mark Madsen
relation gender
type sex
['Mark Madsen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Mark_Madsen property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2573187,P21,c(Q290))
action filter_type
action find
entity Q2573187
relation P21
type Q290
Mark Madsen belongs to [ANSWER]
['Q2573187', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q2573187 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
Mark Madsen belongs to male
male
action filter_type
action find
entity Mark Madsen
relation gender
type sex
['Mark Madsen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Mark_Madsen property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2573187
P69
Q163740
USER
Which nonprofit organization is the alma mater of that person ?
(Q6581097,P69,c(Q163740))
action filter_type
action find
entity Q2573187
relation P69
type Q163740
['Q6581097', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?a WHERE { resource:Q2573187 property:P69 ?a . ?a rdf:type ontology:Q163740 }
Mark Madsen
action filter_type
action find
entity Mark Madsen
relation educated at
type nonprofit organization
['male', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?a WHERE { resource:Mark_Madsen property:educated_at ?a . ?a rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q41506
SYSTEM
Stanford University
Q41506
(Q6581097,P69,c(Q163740))
action filter_type
action find
entity Q2573187
relation P69
type Q163740
[ANSWER] is the alma mater of that person
['Q6581097', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?a WHERE { resource:Q2573187 property:P69 ?a . ?a rdf:type ontology:Q163740 }
Stanford University
Stanford University is the alma mater of that person
Stanford University
action filter_type
action find
entity Mark Madsen
relation educated at
type nonprofit organization
['male', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?a WHERE { resource:Mark_Madsen property:educated_at ?a . ?a rdf:type ontology:nonprofit_organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q41506 Q382109
P138
Q502895
USER
Is Leland Stanford that nonprofit organization named after ?
(Q41506,P138,Q382109)
action is_in
entity Q382109
action find
entity Q41506
relation P138
['Q41506', 'P138', 'Q382109']
ASK WHERE { resource:Q41506 property:P138 resource:Q382109 }
Stanford University Leland Stanford
action is_in
entity Leland Stanford
action find
entity Stanford University
relation named after
['Stanford University', 'named after', 'Leland Stanford']
ASK WHERE { resource:Stanford_University property:named_after resource:Leland_Stanford }
[]
common name
SYSTEM
YES
(Q41506,P138,Q382109)
action is_in
entity Q382109
action find
entity Q41506
relation P138
[ANSWER]
['Q41506', 'P138', 'Q382109']
ASK WHERE { resource:Q41506 property:P138 resource:Q382109 }
Yes
action is_in
entity Leland Stanford
action find
entity Stanford University
relation named after
['Stanford University', 'named after', 'Leland Stanford']
ASK WHERE { resource:Stanford_University property:named_after resource:Leland_Stanford }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26857909 Q2573187
P106
Q12737077
USER
Which occupations are the job of Mark Madsen or TBA ?
OR((Q2573187,P106,c(Q12737077)), (Q26857909,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q2573187
relation P106
action find
entity Q26857909
relation P106
type Q12737077
{'OR': [['Q2573187', 'P106', {'concept': 'Q12737077'}], ['Q26857909', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { ?t property:P106 ?i . VALUES ( ?t ) { ( resource:Q2573187 ) ( resource:Q26857909 ) } } . ?i rdf:type ontology:Q12737077 }
TBA Mark Madsen
action filter_type
action union
action find
entity Mark Madsen
relation occupation
action find
entity TBA
relation occupation
type occupation
{'OR': [['Mark Madsen', 'occupation', {'concept': 'occupation'}], ['TBA', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { ?t property:occupation ?i . VALUES ( ?t ) { ( resource:Mark_Madsen ) ( resource:TBA ) } } . ?i rdf:type ontology:occupation }
[]
occupation
Q3922505 Q5137571 Q130857 Q3665646
SYSTEM
music producer, basketball coach, disc jockey, basketball player
Q3922505 Q5137571 Q130857 Q3665646
OR((Q2573187,P106,c(Q12737077)), (Q26857909,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q2573187
relation P106
action find
entity Q26857909
relation P106
type Q12737077
The [ANSWERS] are the job of Mark Madsen or TBA
{'OR': [['Q2573187', 'P106', {'concept': 'Q12737077'}], ['Q26857909', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { ?t property:P106 ?i . VALUES ( ?t ) { ( resource:Q2573187 ) ( resource:Q26857909 ) } } . ?i rdf:type ontology:Q12737077 }
music producer basketball coach disc jockey basketball player
The music producer, basketball coach, disc jockey and basketball player are the job of Mark Madsen or TBA
music producer basketball coach disc jockey basketball player
action filter_type
action union
action find
entity Mark Madsen
relation occupation
action find
entity TBA
relation occupation
type occupation
{'OR': [['Mark Madsen', 'occupation', {'concept': 'occupation'}], ['TBA', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { ?t property:occupation ?i . VALUES ( ?t ) { ( resource:Mark_Madsen ) ( resource:TBA ) } } . ?i rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q41506 Q12805
P159
Q486972
USER
How many human settlements are the headquarter locations of Stanford University or DuckDuckGo ?
(Q41506,P159,c(Q486972)) (Q12805,P159,c(Q486972))
action count
action union
action filter_type
action find
entity Q41506
relation P159
type Q486972
action filter_type
action find
entity Q12805
relation P159
type Q486972
['Q41506', 'P159', {'concept': 'Q486972'}] ['Q12805', 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { resource:Q41506 property:P159 ?o . ?o rdf:type ontology:Q486972 } UNION { resource:Q12805 property:P159 ?o . ?o rdf:type ontology:Q486972 } }
Stanford University DuckDuckGo
action count
action union
action filter_type
action find
entity Stanford University
relation headquarters location
type human settlement
action filter_type
action find
entity DuckDuckGo
relation headquarters location
type human settlement
['Stanford University', 'headquarters location', {'concept': 'human settlement'}] ['DuckDuckGo', 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { resource:Stanford_University property:headquarters_location ?o . ?o rdf:type ontology:human_settlement } UNION { resource:DuckDuckGo property:headquarters_location ?o . ?o rdf:type ontology:human_settlement } }
[]
human settlement
SYSTEM
2
Q1021562 Q173813
(Q41506,P159,c(Q486972)) (Q12805,P159,c(Q486972))
action count
action union
action filter_type
action find
entity Q41506
relation P159
type Q486972
action filter_type
action find
entity Q12805
relation P159
type Q486972
[ANSWER]
['Q41506', 'P159', {'concept': 'Q486972'}] ['Q12805', 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { resource:Q41506 property:P159 ?o . ?o rdf:type ontology:Q486972 } UNION { resource:Q12805 property:P159 ?o . ?o rdf:type ontology:Q486972 } }
Paoli Stanford
2
action count
action union
action filter_type
action find
entity Stanford University
relation headquarters location
type human settlement
action filter_type
action find
entity DuckDuckGo
relation headquarters location
type human settlement
['Stanford University', 'headquarters location', {'concept': 'human settlement'}] ['DuckDuckGo', 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { resource:Stanford_University property:headquarters_location ?o . ?o rdf:type ontology:human_settlement } UNION { resource:DuckDuckGo property:headquarters_location ?o . ?o rdf:type ontology:human_settlement } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3922505
P101
Q502895
USER
Which person has specialisation in music producer ?
(c(Q502895),P101,Q3922505)
action filter_type
action find_reverse
entity Q3922505
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q3922505']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P101 resource:Q3922505 }
music producer
action filter_type
action find_reverse
entity music producer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'music producer']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:field_of_work resource:music_producer }
[]
common name
Q18171888
SYSTEM
Kim André Arnesen
Q18171888
(c(Q502895),P101,Q3922505)
action filter_type
action find_reverse
entity Q3922505
relation P101
type Q502895
[ANSWER] has specialisation in music producer
[{'concept': 'Q502895'}, 'P101', 'Q3922505']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P101 resource:Q3922505 }
Kim André Arnesen
Kim André Arnesen has specialisation in music producer
Kim André Arnesen
action filter_type
action find_reverse
entity music producer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'music producer']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:field_of_work resource:music_producer }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3922505
P425
Q151885
USER
Which concept has that one as thier associated field of occupation ?
(Q18171888,P425,c(Q151885))
action filter_type
action find
entity Q3922505
relation P425
type Q151885
['Q18171888', 'P425', {'concept': 'Q151885'}]
SELECT DISTINCT ?t WHERE { resource:Q3922505 property:P425 ?t . ?t rdf:type ontology:Q151885 }
music producer
action filter_type
action find
entity music producer
relation field of this occupation
type concept
['Kim André Arnesen', 'field of this occupation', {'concept': 'concept'}]
SELECT DISTINCT ?t WHERE { resource:music_producer property:field_of_this_occupation ?t . ?t rdf:type ontology:concept }
[]
concept
Q9778
SYSTEM
electronic music
Q9778
(Q18171888,P425,c(Q151885))
action filter_type
action find
entity Q3922505
relation P425
type Q151885
[ANSWER] has that one as thier associated field of occupation
['Q18171888', 'P425', {'concept': 'Q151885'}]
SELECT DISTINCT ?t WHERE { resource:Q3922505 property:P425 ?t . ?t rdf:type ontology:Q151885 }
electronic music
Electronic music has that one as thier associated field of occupation
electronic music
action filter_type
action find
entity music producer
relation field of this occupation
type concept
['Kim André Arnesen', 'field of this occupation', {'concept': 'concept'}]
SELECT DISTINCT ?t WHERE { resource:music_producer property:field_of_this_occupation ?t . ?t rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q41506
P276
Q811979 Q838948
USER
How many architectural structures and works of art are located at Stanford University ?
(c(Q811979),P276,Q41506) (c(Q838948),P276,Q41506)
action count
action union
action filter_type
action find_reverse
entity Q41506
relation P276
type Q811979
action filter_type
action find_reverse
entity Q41506
relation P276
type Q838948
[{'concept': 'Q811979'}, 'P276', 'Q41506'] [{'concept': 'Q838948'}, 'P276', 'Q41506']
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { ?m property:P276 resource:Q41506 . ?m rdf:type ontology:Q811979 } UNION { ?m property:P276 resource:Q41506 . ?m rdf:type ontology:Q838948 } }
Stanford University
action count
action union
action filter_type
action find_reverse
entity Stanford University
relation location
type architectural structure
action filter_type
action find_reverse
entity Stanford University
relation location
type work of art
[{'concept': 'architectural structure'}, 'location', 'Stanford University'] [{'concept': 'work of art'}, 'location', 'Stanford University']
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { ?m property:location resource:Stanford_University . ?m rdf:type ontology:architectural_structure } UNION { ?m property:location resource:Stanford_University . ?m rdf:type ontology:work_of_art } }
[]
architectural structure work of art
SYSTEM
1 architectural structures and 1 works of art
Q18153987 Q2003287
(c(Q811979),P276,Q41506) (c(Q838948),P276,Q41506)
action count
action union
action filter_type
action find_reverse
entity Q41506
relation P276
type Q811979
action filter_type
action find_reverse
entity Q41506
relation P276
type Q838948
[ANSWER]
[{'concept': 'Q811979'}, 'P276', 'Q41506'] [{'concept': 'Q838948'}, 'P276', 'Q41506']
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { ?m property:P276 resource:Q41506 . ?m rdf:type ontology:Q811979 } UNION { ?m property:P276 resource:Q41506 . ?m rdf:type ontology:Q838948 } }
Main Quad The Gates of Hell
1 architectural structures and 1 works of art
action count
action union
action filter_type
action find_reverse
entity Stanford University
relation location
type architectural structure
action filter_type
action find_reverse
entity Stanford University
relation location
type work of art
[{'concept': 'architectural structure'}, 'location', 'Stanford University'] [{'concept': 'work of art'}, 'location', 'Stanford University']
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { ?m property:location resource:Stanford_University . ?m rdf:type ontology:architectural_structure } UNION { ?m property:location resource:Stanford_University . ?m rdf:type ontology:work_of_art } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q41506
P127
Q2221906
USER
Which geographic location belongs to Stanford University ?
(c(Q2221906),P127,Q41506)
action filter_type
action find_reverse
entity Q41506
relation P127
type Q2221906
[{'concept': 'Q2221906'}, 'P127', 'Q41506']
SELECT DISTINCT ?r WHERE { ?r property:P127 resource:Q41506 . ?r rdf:type ontology:Q2221906 }
Stanford University
action filter_type
action find_reverse
entity Stanford University
relation owned by
type geographic location
[{'concept': 'geographic location'}, 'owned by', 'Stanford University']
SELECT DISTINCT ?r WHERE { ?r property:owned_by resource:Stanford_University . ?r rdf:type ontology:geographic_location }
[]
geographic location
Q5502714
SYSTEM
Frenchman's Tower
Q5502714
(c(Q2221906),P127,Q41506)
action filter_type
action find_reverse
entity Q41506
relation P127
type Q2221906
[ANSWER] belongs to Stanford University
[{'concept': 'Q2221906'}, 'P127', 'Q41506']
SELECT DISTINCT ?r WHERE { ?r property:P127 resource:Q41506 . ?r rdf:type ontology:Q2221906 }
Frenchman's Tower
Frenchman's Tower belongs to Stanford University
Frenchman's Tower
action filter_type
action find_reverse
entity Stanford University
relation owned by
type geographic location
[{'concept': 'geographic location'}, 'owned by', 'Stanford University']
SELECT DISTINCT ?r WHERE { ?r property:owned_by resource:Stanford_University . ?r rdf:type ontology:geographic_location }
[]