Simple Question (Direct)
Simple Question
Q6849304
P69
Q3918
USER
Which university is the alma mater of Mike Wilson ?
(Q6849304,P69,c(Q3918))
action filter_type
action find
entity Q6849304
relation P69
type Q3918
['Q6849304', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?e WHERE { resource:Q6849304 property:P69 ?e . ?e rdf:type ontology:Q3918 }
Mike Wilson
action filter_type
action find
entity Mike Wilson
relation educated at
type university
['Mike Wilson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?e WHERE { resource:Mike_Wilson property:educated_at ?e . ?e rdf:type ontology:university }
[]
university
Q597236
SYSTEM
Washington State University
Q597236
(Q6849304,P69,c(Q3918))
action filter_type
action find
entity Q6849304
relation P69
type Q3918
[ANSWER] is the alma mater of Mike Wilson
['Q6849304', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?e WHERE { resource:Q6849304 property:P69 ?e . ?e rdf:type ontology:Q3918 }
Washington State University
Washington State University is the alma mater of Mike Wilson
Washington State University
action filter_type
action find
entity Mike Wilson
relation educated at
type university
['Mike Wilson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?e WHERE { resource:Mike_Wilson property:educated_at ?e . ?e rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6849304
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q597236,P106,c(Q12737077))
action filter_type
action find
entity Q6849304
relation P106
type Q12737077
['Q597236', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q6849304 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Mike Wilson
action filter_type
action find
entity Mike Wilson
relation occupation
type occupation
['Washington State University', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Mike_Wilson property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q597236,P106,c(Q12737077))
action filter_type
action find
entity Q6849304
relation P106
type Q12737077
[ANSWER] is the profession of that person
['Q597236', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q6849304 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
American football player
American football player is the profession of that person
American football player
action filter_type
action find
entity Mike Wilson
relation occupation
type occupation
['Washington State University', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Mike_Wilson property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q21339519 Q6849304
P106
Q12737077
USER
Or Guang Yu Luo?
OR((Q6849304,P106,c(Q12737077)), (Q21339519,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6849304
relation P106
action find
entity Q21339519
relation P106
type Q12737077
{'OR': [['Q6849304', 'P106', {'concept': 'Q12737077'}], ['Q21339519', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q6849304 property:P106 ?l } UNION { resource:Q21339519 property:P106 ?l } } . ?l rdf:type ontology:Q12737077 }
Guang Yu Luo Mike Wilson
action filter_type
action union
action find
entity Mike Wilson
relation occupation
action find
entity Guang Yu Luo
relation occupation
type occupation
{'OR': [['Mike Wilson', 'occupation', {'concept': 'occupation'}], ['Guang Yu Luo', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Mike_Wilson property:occupation ?l } UNION { resource:Guang_Yu_Luo property:occupation ?l } } . ?l rdf:type ontology:occupation }
[]
occupation
Q15924544 Q19204627
SYSTEM
lichenologist, American football player
Q15924544 Q19204627
OR((Q6849304,P106,c(Q12737077)), (Q21339519,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6849304
relation P106
action find
entity Q21339519
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q6849304', 'P106', {'concept': 'Q12737077'}], ['Q21339519', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q6849304 property:P106 ?l } UNION { resource:Q21339519 property:P106 ?l } } . ?l rdf:type ontology:Q12737077 }
lichenologist American football player
lichenologist American football player
action filter_type
action union
action find
entity Mike Wilson
relation occupation
action find
entity Guang Yu Luo
relation occupation
type occupation
{'OR': [['Mike Wilson', 'occupation', {'concept': 'occupation'}], ['Guang Yu Luo', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Mike_Wilson property:occupation ?l } UNION { resource:Guang_Yu_Luo property:occupation ?l } } . ?l rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q378622
P921
Q12737077 Q732577 Q191067
USER
How many occupations were greater number of publications or articles mainly about than racing driver ?
(c(Q732577)|c(Q191067),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q378622
relation P921
type Q732577
type Q191067
[[{'concept': 'Q732577'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?l WHERE { { ?l rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q732577 . ?q property:P921 ?l } UNION { ?l rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q191067 . ?q property:P921 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { ?s property:P921 resource:Q378622 . { ?s rdf:type ?e . VALUES ( ?e ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } } } } . FILTER ( ?j > ?u ) }
racing driver
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity racing driver
relation main subject
type publication
type article
[[{'concept': 'publication'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?l WHERE { { ?l rdf:type ontology:occupation . ?q rdf:type ontology:publication . ?q property:main_subject ?l } UNION { ?l rdf:type ontology:occupation . ?q rdf:type ontology:article . ?q property:main_subject ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { ?s property:main_subject resource:racing_driver . { ?s rdf:type ?e . VALUES ( ?e ) { ( ontology:publication ) ( ontology:article ) } } } } . FILTER ( ?j > ?u ) }
[]
occupation publication article
SYSTEM
9
Q172907 Q3809586 Q2094335 Q316070 Q510373 Q152002 Q15320003 Q732358 Q182436
(c(Q732577)|c(Q191067),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q378622
relation P921
type Q732577
type Q191067
[ANSWER]
[[{'concept': 'Q732577'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?l WHERE { { ?l rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q732577 . ?q property:P921 ?l } UNION { ?l rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q191067 . ?q property:P921 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { ?s property:P921 resource:Q378622 . { ?s rdf:type ?e . VALUES ( ?e ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } } } } . FILTER ( ?j > ?u ) }
praetor Wikipedian in Residence United States Attorney Fletcher Christian Lord High Steward pastor migrant worker Nomarch librarian
9
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity racing driver
relation main subject
type publication
type article
[[{'concept': 'publication'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?l WHERE { { ?l rdf:type ontology:occupation . ?q rdf:type ontology:publication . ?q property:main_subject ?l } UNION { ?l rdf:type ontology:occupation . ?q rdf:type ontology:article . ?q property:main_subject ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { ?s property:main_subject resource:racing_driver . { ?s rdf:type ?e . VALUES ( ?e ) { ( ontology:publication ) ( ontology:article ) } } } } . FILTER ( ?j > ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q9402
P921
Q12737077 Q732577 Q191067
USER
And what about ninja?
(c(Q732577)|c(Q191067),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q9402
relation P921
type Q732577
type Q191067
[[{'concept': 'Q732577'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { VALUES ( ?g ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } . ?a rdf:type ?g } . ?a property:P921 resource:Q9402 } } . FILTER ( ?v > ?j ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { { ?s property:P921 ?c . ?s rdf:type ontology:Q732577 . ?c rdf:type ontology:Q12737077 } UNION { ?s property:P921 ?c . ?c rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q191067 } } GROUP BY ?c } }
ninja
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity ninja
relation main subject
type publication
type article
[[{'concept': 'publication'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { VALUES ( ?g ) { ( ontology:article ) ( ontology:publication ) } . ?a rdf:type ?g } . ?a property:main_subject resource:ninja } } . FILTER ( ?v > ?j ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { { ?s property:main_subject ?c . ?s rdf:type ontology:publication . ?c rdf:type ontology:occupation } UNION { ?s property:main_subject ?c . ?c rdf:type ontology:occupation . ?s rdf:type ontology:article } } GROUP BY ?c } }
[]
occupation publication article
SYSTEM
9
Q172907 Q3809586 Q2094335 Q316070 Q510373 Q152002 Q15320003 Q732358 Q182436
(c(Q732577)|c(Q191067),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q9402
relation P921
type Q732577
type Q191067
[ANSWER]
[[{'concept': 'Q732577'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { VALUES ( ?g ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } . ?a rdf:type ?g } . ?a property:P921 resource:Q9402 } } . FILTER ( ?v > ?j ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { { ?s property:P921 ?c . ?s rdf:type ontology:Q732577 . ?c rdf:type ontology:Q12737077 } UNION { ?s property:P921 ?c . ?c rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q191067 } } GROUP BY ?c } }
praetor Wikipedian in Residence United States Attorney Fletcher Christian Lord High Steward pastor migrant worker Nomarch librarian
9
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity ninja
relation main subject
type publication
type article
[[{'concept': 'publication'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { VALUES ( ?g ) { ( ontology:article ) ( ontology:publication ) } . ?a rdf:type ?g } . ?a property:main_subject resource:ninja } } . FILTER ( ?v > ?j ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { { ?s property:main_subject ?c . ?s rdf:type ontology:publication . ?c rdf:type ontology:occupation } UNION { ?s property:main_subject ?c . ?c rdf:type ontology:occupation . ?s rdf:type ontology:article } } GROUP BY ?c } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q597236
P17
Q15617994
USER
Which administrative territory is Washington State University situated in ?
(Q597236,P17,c(Q15617994))
action filter_type
action find
entity Q597236
relation P17
type Q15617994
['Q597236', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q597236 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Washington State University
action filter_type
action find
entity Washington State University
relation country
type designation for an administrative territorial entity
['Washington State University', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Washington_State_University property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q597236,P17,c(Q15617994))
action filter_type
action find
entity Q597236
relation P17
type Q15617994
Washington State University is situated in [ANSWER]
['Q597236', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q597236 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
United States of America
Washington State University is situated in United States of America
United States of America
action filter_type
action find
entity Washington State University
relation country
type designation for an administrative territorial entity
['Washington State University', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Washington_State_University property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q953 Q683808
P530
Q15617994
USER
Does United States of America have ambassadorial relations with Zambia and Speicher ?
(Q30,P530,Q953) (Q30,P530,Q683808)
action is_in
entity Q30
action intersection
action find_reverse
entity Q953
relation P530
action find_reverse
entity Q683808
relation P530
['Q30', 'P530', 'Q953'] ['Q30', 'P530', 'Q683808']
ASK WHERE { resource:Q30 property:P530 resource:Q953 . resource:Q30 property:P530 resource:Q683808 }
United States of America Zambia Speicher
action is_in
entity United States of America
action intersection
action find_reverse
entity Zambia
relation diplomatic relation
action find_reverse
entity Speicher
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Zambia'] ['United States of America', 'diplomatic relation', 'Speicher']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Zambia . resource:United_States_of_America property:diplomatic_relation resource:Speicher }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q30,P530,Q953) (Q30,P530,Q683808)
action is_in
entity Q30
action intersection
action find_reverse
entity Q953
relation P530
action find_reverse
entity Q683808
relation P530
[ANSWER]
['Q30', 'P530', 'Q953'] ['Q30', 'P530', 'Q683808']
ASK WHERE { resource:Q30 property:P530 resource:Q953 . resource:Q30 property:P530 resource:Q683808 }
YES and NO respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Zambia
relation diplomatic relation
action find_reverse
entity Speicher
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Zambia'] ['United States of America', 'diplomatic relation', 'Speicher']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Zambia . resource:United_States_of_America property:diplomatic_relation resource:Speicher }
[]