Simple Question (Direct)
Simple Question
Q3903456
P21
Q290
USER
What is the sex of Pierre Justin Sabatier ?
(Q3903456,P21,c(Q290))
action filter_type
action find
entity Q3903456
relation P21
type Q290
['Q3903456', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q3903456 property:P21 ?l . ?l rdf:type ontology:Q290 }
Pierre Justin Sabatier
action filter_type
action find
entity Pierre Justin Sabatier
relation gender
type sex
['Pierre Justin Sabatier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Pierre_Justin_Sabatier property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3903456,P21,c(Q290))
action filter_type
action find
entity Q3903456
relation P21
type Q290
The sex of Pierre Justin Sabatier is a [ANSWER]
['Q3903456', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q3903456 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
The sex of Pierre Justin Sabatier is a male
male
action filter_type
action find
entity Pierre Justin Sabatier
relation gender
type sex
['Pierre Justin Sabatier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Pierre_Justin_Sabatier property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3903456
P734
Q82799
USER
Who is associated with Pierre Justin Sabatier ?
(Q3903456,P734,c(Q82799))
action filter_type
action find
entity Q3903456
relation P734
type Q82799
['Q3903456', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q3903456 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Pierre Justin Sabatier
action filter_type
action find
entity Pierre Justin Sabatier
relation family name
type name
['Pierre Justin Sabatier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Pierre_Justin_Sabatier property:family_name ?e . ?e rdf:type ontology:name }
[]
name
Q23995810
SYSTEM
Sabatier
Q23995810
(Q3903456,P734,c(Q82799))
action filter_type
action find
entity Q3903456
relation P734
type Q82799
[ANSWER] is associated with Pierre Justin [ANSWER]
['Q3903456', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q3903456 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Sabatier
Sabatier is associated with Pierre Justin Sabatier
Sabatier
action filter_type
action find
entity Pierre Justin Sabatier
relation family name
type name
['Pierre Justin Sabatier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Pierre_Justin_Sabatier property:family_name ?e . ?e rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q809292
Q82799
USER
And also tell me about Barthold Hartwig von Bülow?
(Q809292,P734,c(Q82799))
action filter_type
action find
entity Q809292
relation P734
type Q82799
['Q809292', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { resource:Q809292 property:P734 ?c . ?c rdf:type ontology:Q82799 }
Barthold Hartwig von Bülow
action filter_type
action find
entity Barthold Hartwig von Bülow
relation family name
type name
['Barthold Hartwig von Bülow', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { resource:Barthold_Hartwig_von_Bülow property:family_name ?c . ?c rdf:type ontology:name }
[]
name
Q21487131
SYSTEM
Bülow
Q21487131
(Q809292,P734,c(Q82799))
action filter_type
action find
entity Q809292
relation P734
type Q82799
[ANSWER]
['Q809292', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { resource:Q809292 property:P734 ?c . ?c rdf:type ontology:Q82799 }
Bülow
Bülow
action filter_type
action find
entity Barthold Hartwig von Bülow
relation family name
type name
['Barthold Hartwig von Bülow', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { resource:Barthold_Hartwig_von_Bülow property:family_name ?c . ?c rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q486972 Q39546 Q82799
USER
How many names have approximately 1 human settlements and tools as their namesake ?
(c(Q82799),P138,c(Q486972)|c(Q39546))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q39546
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q39546'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { FILTER ( ?c = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?c ) WHERE { VALUES ( ?i ) { ( ontology:Q486972 ) ( ontology:Q39546 ) } . ?l rdf:type ?i } GROUP BY ?y } }
action count
action approx
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type tool
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'tool'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { FILTER ( ?c = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?c ) WHERE { VALUES ( ?i ) { ( ontology:human_settlement ) ( ontology:tool ) } . ?l rdf:type ?i } GROUP BY ?y } }
[]
human settlement tool name
SYSTEM
3
Q27022433 Q25058808 Q17625919
(c(Q82799),P138,c(Q486972)|c(Q39546))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q39546
value 1
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q39546'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { FILTER ( ?c = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?c ) WHERE { VALUES ( ?i ) { ( ontology:Q486972 ) ( ontology:Q39546 ) } . ?l rdf:type ?i } GROUP BY ?y } }
Danziger Dumoulin Du Moulin
3
action count
action approx
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type tool
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'tool'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { FILTER ( ?c = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?c ) WHERE { VALUES ( ?i ) { ( ontology:human_settlement ) ( ontology:tool ) } . ?l rdf:type ?i } GROUP BY ?y } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q9332 Q151885 Q82799
USER
Which names are a component of max number of behaviors or concepts ?
(c(Q82799),P361,c(Q9332)|c(Q151885))
action argmax
action union
action find_tuple_counts
relation P361
type Q82799
type Q9332
action find_tuple_counts
relation P361
type Q82799
type Q151885
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q9332'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?m ) { ( ontology:Q151885 ) ( ontology:Q9332 ) } . ?j rdf:type ?m } GROUP BY ?h } } . FILTER ( ?u = ?r ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?u ) WHERE { VALUES ( ?a ) { ( ontology:Q9332 ) ( ontology:Q151885 ) } . ?s rdf:type ?a } GROUP BY ?k } }
action argmax
action union
action find_tuple_counts
relation part of
type name
type behavior
action find_tuple_counts
relation part of
type name
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'behavior'}, {'concept': 'concept'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?m ) { ( ontology:concept ) ( ontology:behavior ) } . ?j rdf:type ?m } GROUP BY ?h } } . FILTER ( ?u = ?r ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?u ) WHERE { VALUES ( ?a ) { ( ontology:behavior ) ( ontology:concept ) } . ?s rdf:type ?a } GROUP BY ?k } }
[]
behavior concept name
Q1058384 Q746990 Q876933
SYSTEM
hakham, Brahman, magi
Q1058384 Q382004 Q746990 Q876933
(c(Q82799),P361,c(Q9332)|c(Q151885))
action argmax
action union
action find_tuple_counts
relation P361
type Q82799
type Q9332
action find_tuple_counts
relation P361
type Q82799
type Q151885
[ANSWERS] are a component of max number of behaviors or concepts
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q9332'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?m ) { ( ontology:Q151885 ) ( ontology:Q9332 ) } . ?j rdf:type ?m } GROUP BY ?h } } . FILTER ( ?u = ?r ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?u ) WHERE { VALUES ( ?a ) { ( ontology:Q9332 ) ( ontology:Q151885 ) } . ?s rdf:type ?a } GROUP BY ?k } }
hakham Afa-Negus Brahman magi
Hakham, Brahman and magi are a component of max number of behaviors or concepts
hakham Brahman magi
action argmax
action union
action find_tuple_counts
relation part of
type name
type behavior
action find_tuple_counts
relation part of
type name
type concept
[{'concept': 'name'}, 'part of', [{'concept': 'behavior'}, {'concept': 'concept'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?m ) { ( ontology:concept ) ( ontology:behavior ) } . ?j rdf:type ?m } GROUP BY ?h } } . FILTER ( ?u = ?r ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?u ) WHERE { VALUES ( ?a ) { ( ontology:behavior ) ( ontology:concept ) } . ?s rdf:type ?a } GROUP BY ?k } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1058384
P140
Q874405
USER
What is the religious affiliation of that name ?
(Q1058384,P140,c(Q874405))
action filter_type
action find
entity Q1058384
relation P140
type Q874405
['Q1058384', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?i WHERE { resource:Q1058384 property:P140 ?i . ?i rdf:type ontology:Q874405 }
hakham
action filter_type
action find
entity hakham
relation religion
type social group
['hakham', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?i WHERE { resource:hakham property:religion ?i . ?i rdf:type ontology:social_group }
[]
social group
Clarification for simple ques.
Q1058384
SYSTEM
Did you mean hakham ?
Q1058384 Q746990 Q876933
(Q1058384,P140,c(Q874405)) (Q746990,P140,c(Q874405)) (Q876933,P140,c(Q874405))
[ANSWER]
['Q1058384', 'P140', {'concept': 'Q874405'}] ['Q746990', 'P140', {'concept': 'Q874405'}] ['Q876933', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?i WHERE { resource:Q1058384 property:P140 ?i . ?i rdf:type ontology:Q874405 }
hakham Brahman magi
Did you mean hakham ?
hakham
['hakham', 'religion', {'concept': 'social group'}] ['Brahman', 'religion', {'concept': 'social group'}] ['magi', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?i WHERE { resource:hakham property:religion ?i . ?i rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1058384,P140,c(Q874405))
['Q1058384', 'P140', {'concept': 'Q874405'}]
['hakham', 'religion', {'concept': 'social group'}]
[]
Q9268
SYSTEM
Judaism
Q9268
(Q1058384,P140,c(Q874405))
action filter_type
action find
entity Q1058384
relation P140
type Q874405
The religious affiliation of that name is to [ANSWER]
['Q1058384', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?i WHERE { resource:Q1058384 property:P140 ?i . ?i rdf:type ontology:Q874405 }
Judaism
The religious affiliation of that name is to Judaism
Judaism
action filter_type
action find
entity hakham
relation religion
type social group
['hakham', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?i WHERE { resource:hakham property:religion ?i . ?i rdf:type ontology:social_group }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6581072 Q6581097
P21
Q502895
USER
Which people are a male and female ?
AND((c(Q502895),P21,Q6581097), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q6581097
relation P21
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P21', 'Q6581097'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?x WHERE { ?x property:P21 resource:Q6581097 . ?x property:P21 resource:Q6581072 . ?x rdf:type ontology:Q502895 }
female male
action filter_type
action intersection
action find_reverse
entity male
relation gender
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'gender', 'male'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?x WHERE { ?x property:gender resource:male . ?x property:gender resource:female . ?x rdf:type ontology:common_name }
[]
common name
Q21391750 Q24807469 Q22280111 Q12872947 Q6702791 Q503007 Q24500675 Q21601127 Q18346977 Q21503040
SYSTEM
Some of them are George Mather Luer, Kudirat Akhigbe, Yengkhom Roma, Frosso Kiaou, Luli Bitri, Andreja Pejić, Amadeus Serafini, Marina Lampraki-Plaka, Jan Norback, Kenneth Neil
Q12966459 Q17600942 Q3260705 Q5874237 Q21391750 Q17225819 Q5972494 Q16941580 Q16733519 Q11622868 Q6702791 Q10263785 Q6571041 Q16732132 Q24264223 Q20401379 Q20119921 Q2312612 Q16164967 Q242700 Q6555624 Q12586819 Q23698979 Q17628096 Q22342662 Q525066 Q9544977 Q503007 Q22280111 Q22102078 Q5482749 Q21392153 Q201204 Q10281088 Q442804 Q16767898 Q22570074 Q21601127 Q12403076 Q14432239 Q12734885 Q734662 Q24500675 Q24034956 Q19957341 Q6258596 Q22236117 Q22808784 Q11379959 Q6003690 Q24807469 Q21857402 Q21258362 Q4979792 Q11449790 Q22001922 Q3575012 Q3764762 Q7377573 Q20068820 Q6031433 Q21794041 Q6438624 Q25768293 Q19448005 Q21503040 Q17148031 Q11604340 Q17158335 Q11815936 Q17364527 Q22280435 Q15934058 Q18559837 Q11201210 Q25748324 Q459844 Q2379965 Q3291942 Q17621841 Q20980163 Q453573 Q11531266 Q4255661 Q22675675 Q528434 Q237726 Q74813 Q2668396 Q298423 Q22073991 Q503575 Q23416861 Q15807938 Q19357604 Q18049905 Q26921704 Q2882250 Q18346977 Q2939204 Q3809749 Q12685049 Q21033490 Q5856706 Q16165783 Q5569499 Q12613187 Q7849225 Q16582167 Q19543099 Q16865281 Q22095108 Q12872947 Q15433626
AND((c(Q502895),P21,Q6581097), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q6581097
relation P21
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWERS] are a male and female
{'AND': [[{'concept': 'Q502895'}, 'P21', 'Q6581097'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?x WHERE { ?x property:P21 resource:Q6581097 . ?x property:P21 resource:Q6581072 . ?x rdf:type ontology:Q502895 }
Kim Ju-yeong Gert Portael Louis-Marie Autissier Hom Nguyen George Mather Luer Hajime Hyakkoku Leeland Dayton Mooring Antonio Merayo Ali Nuhu Kodai Fujii Luli Bitri Dalmau IV de Rocabertí Diemut Theato Robin Mathews Milko Tokola Hakima El Haite Lee Parkhill Floris Meydam Ivan Almeida Naima Mora Hana Shezifi Gilgun Elmo Jankari Rafeef Ziadah Magdalena Mayr Liss Eriksson Lilly Wachowski Andreja Pejić Yengkhom Roma Letebrhan Haylay Gebreslasea Francis Wheatley Jian-Huan Yang Dana International Fenedy Masauvakalo Anna Grodzka Chanmi Elisabeth Ullmann Marina Lampraki-Plaka Ángel Martínez Ortega Benny Motzfeldt Maria-Magdalena Zaharescu Joan de Munchensi Amadeus Serafini Jaki Irvine Tinne De Caigny John Spaulding Colombe Marcasiano Annegret Kuhn Kazue Itō María Elena Orantes Kudirat Akhigbe Miska Humaloja Dominique Van Der Straeten Emma Josepha Sparre Terunobu Utsunomiya Suzanne Schulting Zdeněk Koubek Shamshad Begum Rudy Autio Lesya Nikityuk Matthew W. Taylor Jelizaveta Potapova Gaz Beadle Shagdaryn Bira Juan Illas y Vidal Kenneth Neil Maria Espinalt i Font Akira Yoneda Songhaye Petia Stawrewa Ángel Tejeda Sun Vandeth Matsudaira Yoshiko Mirabel Topham Asmik Grigorian K. T. Rama Rao Norah Al Faiz Thomas Beatie Marie-Joseph Charles des Acres de l'Aigle Marta Linares Engel Reimers Vicki Richter Miki Matsumoto Adolfine Therese Leander-Flodin Nikola Jakadofsky Daniele Hypólito Rosalba Carriera Mina Caputo Parinya Charoenphol Chelsea Manning Saalumarada Thimmakka Cesare Nebbia Ivica Mavrenski Elvire De Bruyn Hamda Khamis Stanisława Witekowa Jean-Marie Aleokol Mabieme Jingjing Wang Jan Norback Carlo Guasco Jaiyah Saelua Chew Mei Fun Silke Weitendorf Ingel Fallstedt America Sanchez Glenys Barton Lee Hye-jin Kim Ye-ri Jorge Garate Ionna Stephanopoli Choi Jung-moon Taofik Adegbite Frosso Kiaou Florence Randal Livesay
George Mather Luer, Kudirat Akhigbe, Yengkhom Roma, Frosso Kiaou, Luli Bitri, Andreja Pejić, Amadeus Serafini, Marina Lampraki-Plaka, Jan Norback and Kenneth Neil are a male and female
George Mather Luer Kudirat Akhigbe Yengkhom Roma Frosso Kiaou Luli Bitri Andreja Pejić Amadeus Serafini Marina Lampraki-Plaka Jan Norback Kenneth Neil
action filter_type
action intersection
action find_reverse
entity male
relation gender
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'gender', 'male'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?x WHERE { ?x property:gender resource:male . ?x property:gender resource:female . ?x rdf:type ontology:common_name }
[]