Simple Question (Direct)
Simple Question
Q9374851
P166
Q24016972
USER
What was received by Sir William Lawrence, 1st Baronet ?
(Q9374851,P166,c(Q24016972))
action filter_type
action find
entity Q9374851
relation P166
type Q24016972
['Q9374851', 'P166', {'concept': 'Q24016972'}]
SELECT DISTINCT ?z WHERE { resource:Q9374851 property:P166 ?z . ?z rdf:type ontology:Q24016972 }
Sir William Lawrence, 1st Baronet
action filter_type
action find
entity Sir William Lawrence, 1st Baronet
relation award received
type type of distinction
['Sir William Lawrence, 1st Baronet', 'award received', {'concept': 'type of distinction'}]
SELECT DISTINCT ?z WHERE { resource:Sir_William_Lawrence,_1st_Baronet property:award_received ?z . ?z rdf:type ontology:type_of_distinction }
[]
type of distinction
Q15631401
SYSTEM
Fellow of the Royal Society
Q15631401
(Q9374851,P166,c(Q24016972))
action filter_type
action find
entity Q9374851
relation P166
type Q24016972
A [ANSWER] was received by Sir William Lawrence, 1st Baronet
['Q9374851', 'P166', {'concept': 'Q24016972'}]
SELECT DISTINCT ?z WHERE { resource:Q9374851 property:P166 ?z . ?z rdf:type ontology:Q24016972 }
Fellow of the Royal Society
A Fellow of the Royal Society was received by Sir William Lawrence, 1st Baronet
Fellow of the Royal Society
action filter_type
action find
entity Sir William Lawrence, 1st Baronet
relation award received
type type of distinction
['Sir William Lawrence, 1st Baronet', 'award received', {'concept': 'type of distinction'}]
SELECT DISTINCT ?z WHERE { resource:Sir_William_Lawrence,_1st_Baronet property:award_received ?z . ?z rdf:type ontology:type_of_distinction }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9374851
P1412
Q34770
USER
Which language can that person understand ?
(Q15631401,P1412,c(Q34770))
action filter_type
action find
entity Q9374851
relation P1412
type Q34770
['Q15631401', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q9374851 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
Sir William Lawrence, 1st Baronet
action filter_type
action find
entity Sir William Lawrence, 1st Baronet
relation languages spoken, written or signed
type language
['Fellow of the Royal Society', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Sir_William_Lawrence,_1st_Baronet property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q15631401,P1412,c(Q34770))
action filter_type
action find
entity Q9374851
relation P1412
type Q34770
That person can understand the [ANSWER]
['Q15631401', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q9374851 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
English
That person can understand the English
English
action filter_type
action find
entity Sir William Lawrence, 1st Baronet
relation languages spoken, written or signed
type language
['Fellow of the Royal Society', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Sir_William_Lawrence,_1st_Baronet property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q27486847 Q9374851
P1412 P364
Q34770
USER
What are Sir William Lawrence, 1st Baronet capable of writing and are considered to be the original language of creation of ESRI Shapefile Technical Description ?
AND((Q9374851,P1412,c(Q34770)), (Q27486847,P364,c(Q34770)))
action filter_type
action intersection
action find
entity Q9374851
relation P1412
action find
entity Q27486847
relation P364
type Q34770
{'AND': [['Q9374851', 'P1412', {'concept': 'Q34770'}], ['Q27486847', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q34770 . resource:Q27486847 property:P364 ?z . resource:Q9374851 property:P1412 ?z }
ESRI Shapefile Technical Description Sir William Lawrence, 1st Baronet
action filter_type
action intersection
action find
entity Sir William Lawrence, 1st Baronet
relation languages spoken, written or signed
action find
entity ESRI Shapefile Technical Description
relation original language of work
type language
{'AND': [['Sir William Lawrence, 1st Baronet', 'languages spoken, written or signed', {'concept': 'language'}], ['ESRI Shapefile Technical Description', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:language . resource:ESRI_Shapefile_Technical_Description property:original_language_of_work ?z . resource:Sir_William_Lawrence,_1st_Baronet property:languages_spoken,_written_or_signed ?z }
[]
language
Q1860
SYSTEM
English
Q1860
AND((Q9374851,P1412,c(Q34770)), (Q27486847,P364,c(Q34770)))
action filter_type
action intersection
action find
entity Q9374851
relation P1412
action find
entity Q27486847
relation P364
type Q34770
Sir William Lawrence , 1st Baronet capable of writing and are considered to be the original language of creation of ESRI Shapefile Technical Description are in [ANSWER]
{'AND': [['Q9374851', 'P1412', {'concept': 'Q34770'}], ['Q27486847', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q34770 . resource:Q27486847 property:P364 ?z . resource:Q9374851 property:P1412 ?z }
English
Sir William Lawrence , 1st Baronet capable of writing and are considered to be the original language of creation of ESRI Shapefile Technical Description are in English
English
action filter_type
action intersection
action find
entity Sir William Lawrence, 1st Baronet
relation languages spoken, written or signed
action find
entity ESRI Shapefile Technical Description
relation original language of work
type language
{'AND': [['Sir William Lawrence, 1st Baronet', 'languages spoken, written or signed', {'concept': 'language'}], ['ESRI Shapefile Technical Description', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:language . resource:ESRI_Shapefile_Technical_Description property:original_language_of_work ?z . resource:Sir_William_Lawrence,_1st_Baronet property:languages_spoken,_written_or_signed ?z }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q9374851
P21 P22
Q502895
USER
Which people have Sir William Lawrence, 1st Baronet as a father and have male as the sex ?
AND((c(Q502895),P22,Q9374851), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q9374851
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q9374851'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?x WHERE { ?x property:P22 resource:Q9374851 . ?x property:P21 resource:Q6581097 . ?x rdf:type ontology:Q502895 }
male Sir William Lawrence, 1st Baronet
action filter_type
action intersection
action find_reverse
entity Sir William Lawrence, 1st Baronet
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Sir William Lawrence, 1st Baronet'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?x WHERE { ?x property:father resource:Sir_William_Lawrence,_1st_Baronet . ?x property:gender resource:male . ?x rdf:type ontology:common_name }
[]
common name
Q7529330
SYSTEM
Sir Trevor Lawrence, 2nd Baronet
Q7529330
AND((c(Q502895),P22,Q9374851), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q9374851
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Sir William Lawrence, 1st Baronet as a father and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q9374851'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?x WHERE { ?x property:P22 resource:Q9374851 . ?x property:P21 resource:Q6581097 . ?x rdf:type ontology:Q502895 }
Sir Trevor Lawrence, 2nd Baronet
Sir Trevor Lawrence, 2nd Baronet have Sir William Lawrence, 1st Baronet as a father and have male as the sex
Sir Trevor Lawrence, 2nd Baronet
action filter_type
action intersection
action find_reverse
entity Sir William Lawrence, 1st Baronet
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Sir William Lawrence, 1st Baronet'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?x WHERE { ?x property:father resource:Sir_William_Lawrence,_1st_Baronet . ?x property:gender resource:male . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q9374851
P21 P7
Q502895
USER
Which people had Sir William Lawrence, 1st Baronet as brother and have male as the sex ?
AND((c(Q502895),P7,Q9374851), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q9374851
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q9374851'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o property:P7 resource:Q9374851 . ?o property:P21 resource:Q6581097 . ?o rdf:type ontology:Q502895 }
male Sir William Lawrence, 1st Baronet
action filter_type
action intersection
action find_reverse
entity Sir William Lawrence, 1st Baronet
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Sir William Lawrence, 1st Baronet'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o property:brother resource:Sir_William_Lawrence,_1st_Baronet . ?o property:gender resource:male . ?o rdf:type ontology:common_name }
[]
common name
Q18670869
SYSTEM
Charles Lawrence
Q18670869
AND((c(Q502895),P7,Q9374851), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q9374851
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] had Sir William Lawrence, 1st Baronet as brother and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q9374851'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o property:P7 resource:Q9374851 . ?o property:P21 resource:Q6581097 . ?o rdf:type ontology:Q502895 }
Charles Lawrence
Charles Lawrence had Sir William Lawrence, 1st Baronet as brother and have male as the sex
Charles Lawrence
action filter_type
action intersection
action find_reverse
entity Sir William Lawrence, 1st Baronet
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Sir William Lawrence, 1st Baronet'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o property:brother resource:Sir_William_Lawrence,_1st_Baronet . ?o property:gender resource:male . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q13220204 Q7275
USER
Which languages are the official languages of min number of administrative country subdivisions and states ?
(c(Q13220204)|c(Q7275),P37,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
[[{'concept': 'Q13220204'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?x WHERE { { ?d property:P37 ?x . ?x rdf:type ontology:Q34770 . ?d rdf:type ontology:Q13220204 } UNION { ?x rdf:type ontology:Q34770 . ?d rdf:type ontology:Q7275 . ?d property:P37 ?x } } GROUP BY ?x } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( MIN ( ?p ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) ?s WHERE { { ?c property:P37 ?s . ?s rdf:type ontology:Q34770 . ?c rdf:type ontology:Q13220204 } UNION { ?c property:P37 ?s . ?s rdf:type ontology:Q34770 . ?c rdf:type ontology:Q7275 } } GROUP BY ?s } } }
action argmin
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type state
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?x WHERE { { ?d property:official_language ?x . ?x rdf:type ontology:language . ?d rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?x rdf:type ontology:language . ?d rdf:type ontology:state . ?d property:official_language ?x } } GROUP BY ?x } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( MIN ( ?p ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) ?s WHERE { { ?c property:official_language ?s . ?s rdf:type ontology:language . ?c rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?c property:official_language ?s . ?s rdf:type ontology:language . ?c rdf:type ontology:state } } GROUP BY ?s } } }
[]
language second-level administrative country subdivision state
Q33251 Q8752 Q35499
SYSTEM
Church Slavonic, Basque, Old Church Slavonic
Q33251 Q3110592 Q36206 Q8752 Q35499 Q35726
(c(Q13220204)|c(Q7275),P37,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
[ANSWERS] are the official languages of min number of administrative country subdivisions and states
[[{'concept': 'Q13220204'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?x WHERE { { ?d property:P37 ?x . ?x rdf:type ontology:Q34770 . ?d rdf:type ontology:Q13220204 } UNION { ?x rdf:type ontology:Q34770 . ?d rdf:type ontology:Q7275 . ?d property:P37 ?x } } GROUP BY ?x } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( MIN ( ?p ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) ?s WHERE { { ?c property:P37 ?s . ?s rdf:type ontology:Q34770 . ?c rdf:type ontology:Q13220204 } UNION { ?c property:P37 ?s . ?s rdf:type ontology:Q34770 . ?c rdf:type ontology:Q7275 } } GROUP BY ?s } } }
Church Slavonic written Chinese Lak Basque Old Church Slavonic Etruscan
Church Slavonic, Basque and Old Church Slavonic are the official languages of min number of administrative country subdivisions and states
Church Slavonic Basque Old Church Slavonic
action argmin
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type state
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?x WHERE { { ?d property:official_language ?x . ?x rdf:type ontology:language . ?d rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?x rdf:type ontology:language . ?d rdf:type ontology:state . ?d property:official_language ?x } } GROUP BY ?x } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( MIN ( ?p ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) ?s WHERE { { ?c property:official_language ?s . ?s rdf:type ontology:language . ?c rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?c property:official_language ?s . ?s rdf:type ontology:language . ?c rdf:type ontology:state } } GROUP BY ?s } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q33251
P282
Q9779
USER
Which alphabet is used as the script for that language ?
(Q33251,P282,c(Q9779))
action filter_type
action find
entity Q33251
relation P282
type Q9779
['Q33251', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?b WHERE { resource:Q33251 property:P282 ?b . ?b rdf:type ontology:Q9779 }
Church Slavonic
action filter_type
action find
entity Church Slavonic
relation writing system
type alphabet
['Church Slavonic', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?b WHERE { resource:Church_Slavonic property:writing_system ?b . ?b rdf:type ontology:alphabet }
[]
alphabet
Clarification for simple ques.
Q35499
SYSTEM
Did you mean Old Church Slavonic ?
Q33251 Q8752 Q35499
(Q33251,P282,c(Q9779)) (Q8752,P282,c(Q9779)) (Q35499,P282,c(Q9779))
[ANSWER]
['Q33251', 'P282', {'concept': 'Q9779'}] ['Q8752', 'P282', {'concept': 'Q9779'}] ['Q35499', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?b WHERE { resource:Q33251 property:P282 ?b . ?b rdf:type ontology:Q9779 }
Church Slavonic Basque Old Church Slavonic
Did you mean Old Church Slavonic ?
Old Church Slavonic
['Church Slavonic', 'writing system', {'concept': 'alphabet'}] ['Basque', 'writing system', {'concept': 'alphabet'}] ['Old Church Slavonic', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?b WHERE { resource:Church_Slavonic property:writing_system ?b . ?b rdf:type ontology:alphabet }
[]
Simple Question (Coreferenced)
USER
No, I meant Church Slavonic. Could you tell me the answer for that?
(Q33251,P282,c(Q9779))
Q33251
['Q33251', 'P282', {'concept': 'Q9779'}]
['Church Slavonic', 'writing system', {'concept': 'alphabet'}]
[]
Q8209
SYSTEM
Cyrillic script
Q8209
(Q33251,P282,c(Q9779))
action filter_type
action find
entity Q33251
relation P282
type Q9779
[ANSWER] is used as the script for that language
['Q33251', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?b WHERE { resource:Q33251 property:P282 ?b . ?b rdf:type ontology:Q9779 }
Cyrillic script
Cyrillic script is used as the script for that language
Cyrillic script
action filter_type
action find
entity Church Slavonic
relation writing system
type alphabet
['Church Slavonic', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?b WHERE { resource:Church_Slavonic property:writing_system ?b . ?b rdf:type ontology:alphabet }
[]