Simple Question (Direct)
Simple Question
Q233644
P26
Q502895
USER
Which person is the life partner of Frances Folsom Cleveland Preston ?
(Q233644,P26,c(Q502895))
action filter_type
action find
entity Q233644
relation P26
type Q502895
['Q233644', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q233644 property:P26 ?l }
Frances Folsom Cleveland Preston
action filter_type
action find
entity Frances Folsom Cleveland Preston
relation spouse
type common name
['Frances Folsom Cleveland Preston', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Frances_Folsom_Cleveland_Preston property:spouse ?l }
[]
common name
Q35171
SYSTEM
Grover Cleveland
Q35171
(Q233644,P26,c(Q502895))
action filter_type
action find
entity Q233644
relation P26
type Q502895
[ANSWER] is the life partner of Frances Folsom Cleveland Preston
['Q233644', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q233644 property:P26 ?l }
Grover Cleveland
Grover Cleveland is the life partner of Frances Folsom Cleveland Preston
Grover Cleveland
action filter_type
action find
entity Frances Folsom Cleveland Preston
relation spouse
type common name
['Frances Folsom Cleveland Preston', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Frances_Folsom_Cleveland_Preston property:spouse ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q35171
P1412
Q34770
USER
Which language can that person understand ?
(Q35171,P1412,c(Q34770))
action filter_type
action find
entity Q35171
relation P1412
type Q34770
['Q35171', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q35171 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Grover Cleveland
action filter_type
action find
entity Grover Cleveland
relation languages spoken, written or signed
type language
['Grover Cleveland', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Grover_Cleveland property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q35171,P1412,c(Q34770))
action filter_type
action find
entity Q35171
relation P1412
type Q34770
That person can understand the [ANSWER]
['Q35171', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q35171 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
English
That person can understand the English
English
action filter_type
action find
entity Grover Cleveland
relation languages spoken, written or signed
type language
['Grover Cleveland', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Grover_Cleveland property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P282
Q9779 Q8192 Q34770
USER
How many languages adopt approximately 1 alphabets or writing systems as the writing system ?
(c(Q34770),P282,c(Q9779)|c(Q8192))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
value 1
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?n rdf:type ?z } GROUP BY ?b } . FILTER ( ?t = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?n rdf:type ?z } GROUP BY ?b } . FILTER ( ?t = 1 ) }
[]
alphabet writing system language
SYSTEM
8
Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q8192))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
value 1
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?n rdf:type ?z } GROUP BY ?b } . FILTER ( ?t = 1 ) }
Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
8
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?n rdf:type ?z } GROUP BY ?b } . FILTER ( ?t = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35171
P7
Q502895
USER
Who is Grover Cleveland a brother of ?
(c(Q502895),P7,Q35171)
action filter_type
action find_reverse
entity Q35171
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q35171']
SELECT DISTINCT ?w WHERE { ?w property:P7 resource:Q35171 . ?w rdf:type ontology:Q502895 }
Grover Cleveland
action filter_type
action find_reverse
entity Grover Cleveland
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Grover Cleveland']
SELECT DISTINCT ?w WHERE { ?w property:brother resource:Grover_Cleveland . ?w rdf:type ontology:common_name }
[]
common name
Q255611
SYSTEM
Rose Cleveland
Q255611
(c(Q502895),P7,Q35171)
action filter_type
action find_reverse
entity Q35171
relation P7
type Q502895
Grover Cleveland a brother of is the [ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q35171']
SELECT DISTINCT ?w WHERE { ?w property:P7 resource:Q35171 . ?w rdf:type ontology:Q502895 }
Rose Cleveland
Grover Cleveland a brother of is the Rose Cleveland
Rose Cleveland
action filter_type
action find_reverse
entity Grover Cleveland
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Grover Cleveland']
SELECT DISTINCT ?w WHERE { ?w property:brother resource:Grover_Cleveland . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35171
P40
Q502895
USER
Who has Grover Cleveland as an offspring ?
(c(Q502895),P40,Q35171)
action filter_type
action find_reverse
entity Q35171
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q35171']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P40 resource:Q35171 }
Grover Cleveland
action filter_type
action find_reverse
entity Grover Cleveland
relation child
type common name
[{'concept': 'common name'}, 'child', 'Grover Cleveland']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:child resource:Grover_Cleveland }
[]
common name
Q20767966
SYSTEM
Richard Falley Cleveland
Q20767966
(c(Q502895),P40,Q35171)
action filter_type
action find_reverse
entity Q35171
relation P40
type Q502895
[ANSWER] has Grover Cleveland as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q35171']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P40 resource:Q35171 }
Richard Falley Cleveland
Richard Falley Cleveland has Grover Cleveland as an offspring
Richard Falley Cleveland
action filter_type
action find_reverse
entity Grover Cleveland
relation child
type common name
[{'concept': 'common name'}, 'child', 'Grover Cleveland']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:child resource:Grover_Cleveland }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20767966
P21
Q290
USER
Which sex does that person have ?
(Q20767966,P21,c(Q290))
action filter_type
action find
entity Q20767966
relation P21
type Q290
['Q20767966', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q20767966 property:P21 ?h . ?h rdf:type ontology:Q290 }
Richard Falley Cleveland
action filter_type
action find
entity Richard Falley Cleveland
relation gender
type sex
['Richard Falley Cleveland', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Richard_Falley_Cleveland property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q20767966,P21,c(Q290))
action filter_type
action find
entity Q20767966
relation P21
type Q290
That person has a [ANSWER]
['Q20767966', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q20767966 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Richard Falley Cleveland
relation gender
type sex
['Richard Falley Cleveland', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Richard_Falley_Cleveland property:gender ?h . ?h rdf:type ontology:sex }
[]