Simple Question (Direct)
Simple Question
Q3856872
P734
Q82799
USER
Which name is associated with Michelle Edwards ?
(Q3856872,P734,c(Q82799))
action filter_type
action find
entity Q3856872
relation P734
type Q82799
['Q3856872', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q3856872 property:P734 ?v . ?v rdf:type ontology:Q82799 }
Michelle Edwards
action filter_type
action find
entity Michelle Edwards
relation family name
type name
['Michelle Edwards', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Michelle_Edwards property:family_name ?v . ?v rdf:type ontology:name }
[]
name
Q2691159
SYSTEM
Edwards
Q2691159
(Q3856872,P734,c(Q82799))
action filter_type
action find
entity Q3856872
relation P734
type Q82799
Was [ANSWER] is associated with Michelle [ANSWER]
['Q3856872', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q3856872 property:P734 ?v . ?v rdf:type ontology:Q82799 }
Edwards
Was Edwards is associated with Michelle Edwards
Edwards
action filter_type
action find
entity Michelle Edwards
relation family name
type name
['Michelle Edwards', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Michelle_Edwards property:family_name ?v . ?v rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2691159
P407
Q34770
USER
Which language is that name in ?
(Q2691159,P407,c(Q34770))
action filter_type
action find
entity Q2691159
relation P407
type Q34770
['Q2691159', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q2691159 property:P407 ?l . ?l rdf:type ontology:Q34770 }
Edwards
action filter_type
action find
entity Edwards
relation language of work or name
type language
['Edwards', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Edwards property:language_of_work_or_name ?l . ?l rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2691159,P407,c(Q34770))
action filter_type
action find
entity Q2691159
relation P407
type Q34770
That is name in [ANSWER]
['Q2691159', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q2691159 property:P407 ?l . ?l rdf:type ontology:Q34770 }
English
That is name in English
English
action filter_type
action find
entity Edwards
relation language of work or name
type language
['Edwards', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Edwards property:language_of_work_or_name ?l . ?l rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P361
Q5962346
USER
How many classification schemes are that language a component of ?
(Q1860,P361,c(Q5962346))
action count
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ontology:Q5962346 . resource:Q1860 property:P361 ?s }
action count
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ontology:classification_scheme . resource:English property:part_of ?s }
[]
classification scheme
SYSTEM
2
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action count
action filter_type
action find
entity Q1860
relation P361
type Q5962346
[ANSWER]
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ontology:Q5962346 . resource:Q1860 property:P361 ?s }
Anglic languages Anglo-Frisian languages
2
action count
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { ?s rdf:type ontology:classification_scheme . resource:English property:part_of ?s }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q4130
Q5962346
USER
And what about orbit?
(Q4130,P361,c(Q5962346))
action count
action filter_type
action find
entity Q4130
relation P361
type Q5962346
['Q4130', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s rdf:type ontology:Q5962346 . resource:Q4130 property:P361 ?s }
orbit
action count
action filter_type
action find
entity orbit
relation part of
type classification scheme
['orbit', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s rdf:type ontology:classification_scheme . resource:orbit property:part_of ?s }
[]
classification scheme
SYSTEM
1
(Q4130,P361,c(Q5962346))
action count
action filter_type
action find
entity Q4130
relation P361
type Q5962346
[ANSWER]
['Q4130', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s rdf:type ontology:Q5962346 . resource:Q4130 property:P361 ?s }
1
action count
action filter_type
action find
entity orbit
relation part of
type classification scheme
['orbit', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s rdf:type ontology:classification_scheme . resource:orbit property:part_of ?s }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P841
Q573 Q186081 Q502895
USER
Which people have max number of days or time intervals as their principal feast day ?
(c(Q502895),P841,c(Q573)|c(Q186081))
action argmax
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?c ) { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?h ) WHERE { { ?a rdf:type ontology:Q502895 . ?v rdf:type ontology:Q186081 . ?a property:P841 ?v } UNION { ?a property:P841 ?v . ?a rdf:type ontology:Q502895 . ?v rdf:type ontology:Q573 } } GROUP BY ?a } } . FILTER ( ?e = ?c ) . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?q . VALUES ( ?q ) { ( ontology:Q573 ) ( ontology:Q186081 ) } } GROUP BY ?w } }
action argmax
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?c ) { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?h ) WHERE { { ?a rdf:type ontology:common_name . ?v rdf:type ontology:time_interval . ?a property:feast_day ?v } UNION { ?a property:feast_day ?v . ?a rdf:type ontology:common_name . ?v rdf:type ontology:day } } GROUP BY ?a } } . FILTER ( ?e = ?c ) . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?q . VALUES ( ?q ) { ( ontology:day ) ( ontology:time_interval ) } } GROUP BY ?w } }
[]
day time interval common name
Q724454 Q18691847
SYSTEM
Julian of Antioch, Saint Ilar
Q724454 Q18691847
(c(Q502895),P841,c(Q573)|c(Q186081))
action argmax
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
[ANSWERS] have max number of days or time intervals as their principal feast day
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?c ) { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?h ) WHERE { { ?a rdf:type ontology:Q502895 . ?v rdf:type ontology:Q186081 . ?a property:P841 ?v } UNION { ?a property:P841 ?v . ?a rdf:type ontology:Q502895 . ?v rdf:type ontology:Q573 } } GROUP BY ?a } } . FILTER ( ?e = ?c ) . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?q . VALUES ( ?q ) { ( ontology:Q573 ) ( ontology:Q186081 ) } } GROUP BY ?w } }
Julian of Antioch Saint Ilar
Julian of Antioch and Saint Ilar have max number of days or time intervals as their principal feast day
Julian of Antioch Saint Ilar
action argmax
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?c ) { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?h ) WHERE { { ?a rdf:type ontology:common_name . ?v rdf:type ontology:time_interval . ?a property:feast_day ?v } UNION { ?a property:feast_day ?v . ?a rdf:type ontology:common_name . ?v rdf:type ontology:day } } GROUP BY ?a } } . FILTER ( ?e = ?c ) . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?q . VALUES ( ?q ) { ( ontology:day ) ( ontology:time_interval ) } } GROUP BY ?w } }
[]
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 exactly 1 person ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?h = 1 ) }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?h = 1 ) }
[]
musical instrument common name
SYSTEM
33
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?h = 1 ) }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
33
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?h = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q724454
P411
Q82799
USER
What is the name of Julian of Antioch ?
(Q724454,P411,c(Q82799))
action filter_type
action find
entity Q724454
relation P411
type Q82799
['Q724454', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { resource:Q724454 property:P411 ?l . ?l rdf:type ontology:Q82799 }
Julian of Antioch
action filter_type
action find
entity Julian of Antioch
relation canonization status
type name
['Julian of Antioch', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { resource:Julian_of_Antioch property:canonization_status ?l . ?l rdf:type ontology:name }
[]
name
Q43115
SYSTEM
saint
Q43115
(Q724454,P411,c(Q82799))
action filter_type
action find
entity Q724454
relation P411
type Q82799
The name of Julian of Antioch is a [ANSWER]
['Q724454', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { resource:Q724454 property:P411 ?l . ?l rdf:type ontology:Q82799 }
saint
The name of Julian of Antioch is a saint
saint
action filter_type
action find
entity Julian of Antioch
relation canonization status
type name
['Julian of Antioch', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { resource:Julian_of_Antioch property:canonization_status ?l . ?l rdf:type ontology:name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P180
Q82799 Q18783400 Q340169
USER
Which names are expressed in more number of genres of sculpture or medias than that name ?
(c(Q18783400)|c(Q340169),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q43115
relation P180
type Q18783400
type Q340169
[[{'concept': 'Q18783400'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:P180 resource:Q43115 . { { ?s rdf:type ontology:Q18783400 } UNION { ?s rdf:type ontology:Q340169 } } } } . FILTER ( ?r > ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) ?k WHERE { { ?p property:P180 ?k . ?k rdf:type ontology:Q82799 . ?p rdf:type ontology:Q18783400 } UNION { ?p property:P180 ?k . ?k rdf:type ontology:Q82799 . ?p rdf:type ontology:Q340169 } } GROUP BY ?k } }
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity saint
relation depicts
type genre of sculpture
type media
[[{'concept': 'genre of sculpture'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:depicts resource:saint . { { ?s rdf:type ontology:genre_of_sculpture } UNION { ?s rdf:type ontology:media } } } } . FILTER ( ?r > ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) ?k WHERE { { ?p property:depicts ?k . ?k rdf:type ontology:name . ?p rdf:type ontology:genre_of_sculpture } UNION { ?p property:depicts ?k . ?k rdf:type ontology:name . ?p rdf:type ontology:media } } GROUP BY ?k } }
[]
name genre of sculpture media
Q144 Q726 Q7368
SYSTEM
dog, horse, Ovis aries
Q5 Q726 Q830 Q3736439 Q7368 Q7369 Q2092297 Q144 Q24067392 Q3537778 Q1367 Q9394 Q7378
(c(Q18783400)|c(Q340169),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q43115
relation P180
type Q18783400
type Q340169
[ANSWERS] are expressed in more number of genres of sculpture or medias than that name
[[{'concept': 'Q18783400'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:P180 resource:Q43115 . { { ?s rdf:type ontology:Q18783400 } UNION { ?s rdf:type ontology:Q340169 } } } } . FILTER ( ?r > ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) ?k WHERE { { ?p property:P180 ?k . ?k rdf:type ontology:Q82799 . ?p rdf:type ontology:Q18783400 } UNION { ?p property:P180 ?k . ?k rdf:type ontology:Q82799 . ?p rdf:type ontology:Q340169 } } GROUP BY ?k } }
human horse cattle duck Ovis aries dolphin eagle dog Boy donkeys monkey rabbit elephant
Dog, horse and Ovis aries are expressed in more number of genres of sculpture or medias than that name
dog horse Ovis aries
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity saint
relation depicts
type genre of sculpture
type media
[[{'concept': 'genre of sculpture'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:depicts resource:saint . { { ?s rdf:type ontology:genre_of_sculpture } UNION { ?s rdf:type ontology:media } } } } . FILTER ( ?r > ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) ?k WHERE { { ?p property:depicts ?k . ?k rdf:type ontology:name . ?p rdf:type ontology:genre_of_sculpture } UNION { ?p property:depicts ?k . ?k rdf:type ontology:name . ?p rdf:type ontology:media } } GROUP BY ?k } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7368
P1990
Q178706
USER
Which institutions have conserved the species named that name ?
(c(Q178706),P1990,Q7368)
action filter_type
action find_reverse
entity Q7368
relation P1990
type Q178706
[{'concept': 'Q178706'}, 'P1990', 'Q7368']
SELECT DISTINCT ?r WHERE { ?r property:P1990 resource:Q7368 . ?r rdf:type ontology:Q178706 }
Ovis aries
action filter_type
action find_reverse
entity Ovis aries
relation species kept
type institution
[{'concept': 'institution'}, 'species kept', 'Ovis aries']
SELECT DISTINCT ?r WHERE { ?r property:species_kept resource:Ovis_aries . ?r rdf:type ontology:institution }
[]
institution
Clarification for simple ques.
Q144
SYSTEM
Did you mean dog ?
Q144 Q726 Q7368
(c(Q178706),P1990,Q144) (c(Q178706),P1990,Q726) (c(Q178706),P1990,Q7368)
[ANSWER]
[{'concept': 'Q178706'}, 'P1990', 'Q144'] [{'concept': 'Q178706'}, 'P1990', 'Q726'] [{'concept': 'Q178706'}, 'P1990', 'Q7368']
SELECT DISTINCT ?r WHERE { ?r property:P1990 resource:Q7368 . ?r rdf:type ontology:Q178706 }
dog horse Ovis aries
Did you mean dog ?
dog
[{'concept': 'institution'}, 'species kept', 'dog'] [{'concept': 'institution'}, 'species kept', 'horse'] [{'concept': 'institution'}, 'species kept', 'Ovis aries']
SELECT DISTINCT ?r WHERE { ?r property:species_kept resource:Ovis_aries . ?r rdf:type ontology:institution }
[]
Simple Question (Coreferenced)
USER
No, I meant Ovis aries. Could you tell me the answer for that?
(c(Q178706),P1990,Q7368)
Q7368
[{'concept': 'Q178706'}, 'P1990', 'Q7368']
[{'concept': 'institution'}, 'species kept', 'Ovis aries']
[]
Q6364924 Q7985928 Q4925131
SYSTEM
Kansas City Zoo, West Midland Safari Park, Blank Park Zoo
Q6364924 Q7985928 Q4925131
(c(Q178706),P1990,Q7368)
action filter_type
action find_reverse
entity Q7368
relation P1990
type Q178706
[ANSWERS] have conserved the species named that name
[{'concept': 'Q178706'}, 'P1990', 'Q7368']
SELECT DISTINCT ?r WHERE { ?r property:P1990 resource:Q7368 . ?r rdf:type ontology:Q178706 }
Kansas City Zoo West Midland Safari Park Blank Park Zoo
Kansas City Zoo, West Midland Safari Park and Blank Park Zoo have conserved the species named that name
Kansas City Zoo West Midland Safari Park Blank Park Zoo
action filter_type
action find_reverse
entity Ovis aries
relation species kept
type institution
[{'concept': 'institution'}, 'species kept', 'Ovis aries']
SELECT DISTINCT ?r WHERE { ?r property:species_kept resource:Ovis_aries . ?r rdf:type ontology:institution }
[]