Simple Question (Direct)
Simple Question
Q3960170
P21
Q290
USER
What is the sex of Sidney Lowe ?
(Q3960170,P21,c(Q290))
action filter_type
action find
entity Q3960170
relation P21
type Q290
['Q3960170', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q3960170 property:P21 ?o }
Sidney Lowe
action filter_type
action find
entity Sidney Lowe
relation gender
type sex
['Sidney Lowe', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Sidney_Lowe property:gender ?o }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3960170,P21,c(Q290))
action filter_type
action find
entity Q3960170
relation P21
type Q290
The sex of Sidney Lowe is the [ANSWER]
['Q3960170', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q3960170 property:P21 ?o }
male
The sex of Sidney Lowe is the male
male
action filter_type
action find
entity Sidney Lowe
relation gender
type sex
['Sidney Lowe', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Sidney_Lowe property:gender ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3960170
P735
Q82799
USER
What is forename of that person ?
(Q6581097,P735,c(Q82799))
action filter_type
action find
entity Q3960170
relation P735
type Q82799
['Q6581097', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q3960170 property:P735 ?a . ?a rdf:type ontology:Q82799 }
Sidney Lowe
action filter_type
action find
entity Sidney Lowe
relation given name
type name
['male', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Sidney_Lowe property:given_name ?a . ?a rdf:type ontology:name }
[]
name
Q3960161
SYSTEM
Sidney
Q3960161
(Q6581097,P735,c(Q82799))
action filter_type
action find
entity Q3960170
relation P735
type Q82799
Forename of that person is called [ANSWER]
['Q6581097', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q3960170 property:P735 ?a . ?a rdf:type ontology:Q82799 }
Sidney
Forename of that person is called Sidney
Sidney
action filter_type
action find
entity Sidney Lowe
relation given name
type name
['male', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Sidney_Lowe property:given_name ?a . ?a rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3960170
P27
Q15617994
USER
How many administrative territories are the countries of citizenship of Sidney Lowe ?
(Q3960170,P27,c(Q15617994))
action count
action filter_type
action find
entity Q3960170
relation P27
type Q15617994
['Q3960170', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Q3960170 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Sidney Lowe
action count
action filter_type
action find
entity Sidney Lowe
relation country of citizenship
type designation for an administrative territorial entity
['Sidney Lowe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Sidney_Lowe property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q3960170,P27,c(Q15617994))
action count
action filter_type
action find
entity Q3960170
relation P27
type Q15617994
[ANSWER]
['Q3960170', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Q3960170 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Sidney Lowe
relation country of citizenship
type designation for an administrative territorial entity
['Sidney Lowe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Sidney_Lowe property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q1249138
P27
Q15617994
USER
And how about Franco Rasetti?
(Q1249138,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1249138
relation P27
type Q15617994
['Q1249138', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q1249138 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Franco Rasetti
action count
action filter_type
action find
entity Franco Rasetti
relation country of citizenship
type designation for an administrative territorial entity
['Franco Rasetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Franco_Rasetti property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q38
(Q1249138,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1249138
relation P27
type Q15617994
[ANSWER]
['Q1249138', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q1249138 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Italy
1
action count
action filter_type
action find
entity Franco Rasetti
relation country of citizenship
type designation for an administrative territorial entity
['Franco Rasetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Franco_Rasetti property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q4713959
Q15617994
USER
And also tell me about Aldona Orman?
(Q4713959,P27,c(Q15617994))
action count
action filter_type
action find
entity Q4713959
relation P27
type Q15617994
['Q4713959', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Q4713959 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Aldona Orman
action count
action filter_type
action find
entity Aldona Orman
relation country of citizenship
type designation for an administrative territorial entity
['Aldona Orman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Aldona_Orman property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q4713959,P27,c(Q15617994))
action count
action filter_type
action find
entity Q4713959
relation P27
type Q15617994
[ANSWER]
['Q4713959', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Q4713959 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Aldona Orman
relation country of citizenship
type designation for an administrative territorial entity
['Aldona Orman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Aldona_Orman property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q8436 Q151885 Q82799
USER
Which names are a component of approximately 1 families and concepts ?
(c(Q82799),P361,c(Q8436)|c(Q151885))
action approx
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q151885
value 1
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?t WHERE { VALUES ( ?g ) { ( ontology:Q8436 ) ( ontology:Q151885 ) } . ?b rdf:type ?g } GROUP BY ?t } }
action approx
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type concept
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'concept'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?t WHERE { VALUES ( ?g ) { ( ontology:family ) ( ontology:concept ) } . ?b rdf:type ?g } GROUP BY ?t } }
[]
family concept name
Q1058384 Q746990 Q876933
SYSTEM
hakham, Brahman, magi
Q1058384 Q235598 Q742083 Q746990 Q876933
(c(Q82799),P361,c(Q8436)|c(Q151885))
action approx
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q151885
value 1
[ANSWERS] are a component of approximately 1 families and concepts
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?t WHERE { VALUES ( ?g ) { ( ontology:Q8436 ) ( ontology:Q151885 ) } . ?b rdf:type ?g } GROUP BY ?t } }
hakham Piso Princes of Paliano Brahman magi
Hakham, Brahman and magi are a component of approximately 1 families and concepts
hakham Brahman magi
action approx
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type concept
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'concept'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?t WHERE { VALUES ( ?g ) { ( ontology:family ) ( ontology:concept ) } . ?b rdf:type ?g } GROUP BY ?t } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1058384
P140
Q874405
USER
What is the religion associated with hakham ?
(Q1058384,P140,c(Q874405))
action filter_type
action find
entity Q1058384
relation P140
type Q874405
['Q1058384', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?o WHERE { resource:Q1058384 property:P140 ?o . ?o rdf:type ontology:Q874405 }
hakham
action filter_type
action find
entity hakham
relation religion
type social group
['hakham', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?o WHERE { resource:hakham property:religion ?o . ?o rdf:type ontology:social_group }
[]
social group
Q9268
SYSTEM
Judaism
Q9268
(Q1058384,P140,c(Q874405))
action filter_type
action find
entity Q1058384
relation P140
type Q874405
The religion associated with hakham is [ANSWER]
['Q1058384', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?o WHERE { resource:Q1058384 property:P140 ?o . ?o rdf:type ontology:Q874405 }
Judaism
The religion associated with hakham is Judaism
Judaism
action filter_type
action find
entity hakham
relation religion
type social group
['hakham', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?o WHERE { resource:hakham property:religion ?o . ?o rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9268
P135
Q502895
USER
Which person is linked with that social group ?
(c(Q502895),P135,Q9268)
action filter_type
action find_reverse
entity Q9268
relation P135
type Q502895
[{'concept': 'Q502895'}, 'P135', 'Q9268']
SELECT DISTINCT ?o WHERE { ?o property:P135 resource:Q9268 . ?o rdf:type ontology:Q502895 }
Judaism
action filter_type
action find_reverse
entity Judaism
relation movement
type common name
[{'concept': 'common name'}, 'movement', 'Judaism']
SELECT DISTINCT ?o WHERE { ?o property:movement resource:Judaism . ?o rdf:type ontology:common_name }
[]
common name
Q80596
SYSTEM
Arthur Miller
Q80596
(c(Q502895),P135,Q9268)
action filter_type
action find_reverse
entity Q9268
relation P135
type Q502895
[ANSWER] is linked with that social group
[{'concept': 'Q502895'}, 'P135', 'Q9268']
SELECT DISTINCT ?o WHERE { ?o property:P135 resource:Q9268 . ?o rdf:type ontology:Q502895 }
Arthur Miller
Arthur Miller is linked with that social group
Arthur Miller
action filter_type
action find_reverse
entity Judaism
relation movement
type common name
[{'concept': 'common name'}, 'movement', 'Judaism']
SELECT DISTINCT ?o WHERE { ?o property:movement resource:Judaism . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q80596
P676
Q15850590
USER
Which theatrical genre has its lyrics written by that person ?
(c(Q15850590),P676,Q80596)
action filter_type
action find_reverse
entity Q80596
relation P676
type Q15850590
[{'concept': 'Q15850590'}, 'P676', 'Q80596']
SELECT DISTINCT ?d WHERE { ?d property:P676 resource:Q80596 . ?d rdf:type ontology:Q15850590 }
Arthur Miller
action filter_type
action find_reverse
entity Arthur Miller
relation lyrics by
type theatrical genre
[{'concept': 'theatrical genre'}, 'lyrics by', 'Arthur Miller']
SELECT DISTINCT ?d WHERE { ?d property:lyrics_by resource:Arthur_Miller . ?d rdf:type ontology:theatrical_genre }
[]
theatrical genre
Q7898049
SYSTEM
Up from Paradise
Q7898049
(c(Q15850590),P676,Q80596)
action filter_type
action find_reverse
entity Q80596
relation P676
type Q15850590
[ANSWER] has its lyrics written by that person
[{'concept': 'Q15850590'}, 'P676', 'Q80596']
SELECT DISTINCT ?d WHERE { ?d property:P676 resource:Q80596 . ?d rdf:type ontology:Q15850590 }
Up from Paradise
Up from Paradise has its lyrics written by that person
Up from Paradise
action filter_type
action find_reverse
entity Arthur Miller
relation lyrics by
type theatrical genre
[{'concept': 'theatrical genre'}, 'lyrics by', 'Arthur Miller']
SELECT DISTINCT ?d WHERE { ?d property:lyrics_by resource:Arthur_Miller . ?d rdf:type ontology:theatrical_genre }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5435278 Q3960170
P27
Q15617994
USER
Which administrative territories are the native countriesof Sidney Lowe or Farida Osman ?
OR((Q3960170,P27,c(Q15617994)), (Q5435278,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3960170
relation P27
action find
entity Q5435278
relation P27
type Q15617994
{'OR': [['Q3960170', 'P27', {'concept': 'Q15617994'}], ['Q5435278', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q3960170 property:P27 ?n } UNION { resource:Q5435278 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Farida Osman Sidney Lowe
action filter_type
action union
action find
entity Sidney Lowe
relation country of citizenship
action find
entity Farida Osman
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sidney Lowe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Farida Osman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Sidney_Lowe property:country_of_citizenship ?n } UNION { resource:Farida_Osman property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q79
SYSTEM
United States of America, Egypt
Q30 Q79
OR((Q3960170,P27,c(Q15617994)), (Q5435278,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3960170
relation P27
action find
entity Q5435278
relation P27
type Q15617994
[ANSWERS] are the native countriesof Sidney Lowe or Farida Osman
{'OR': [['Q3960170', 'P27', {'concept': 'Q15617994'}], ['Q5435278', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q3960170 property:P27 ?n } UNION { resource:Q5435278 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
United States of America Egypt
United States of America and Egypt are the native countriesof Sidney Lowe or Farida Osman
United States of America Egypt
action filter_type
action union
action find
entity Sidney Lowe
relation country of citizenship
action find
entity Farida Osman
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sidney Lowe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Farida Osman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Sidney_Lowe property:country_of_citizenship ?n } UNION { resource:Farida_Osman property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2876425
P361
Q151885 Q874405 Q82799
USER
Which names are a component of greater number of concepts and social groups than Aïssata ?
(c(Q82799),P361,c(Q151885)|c(Q874405))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q874405
action count
action filter_multi_types
action find
entity Q2876425
relation P361
type Q151885
type Q874405
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?g ) WHERE { { ?c rdf:type ontology:Q82799 . ?e rdf:type ontology:Q151885 . ?c property:P361 ?e } UNION { ?c property:P361 ?e . ?c rdf:type ontology:Q82799 . ?e rdf:type ontology:Q874405 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q2876425 property:P361 ?s . { VALUES ( ?r ) { ( ontology:Q874405 ) ( ontology:Q151885 ) } . ?s rdf:type ?r } } } . FILTER ( ?g > ?x ) }
Aïssata
action greater
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type social group
action count
action filter_multi_types
action find
entity Aïssata
relation part of
type concept
type social group
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'social group'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?g ) WHERE { { ?c rdf:type ontology:name . ?e rdf:type ontology:concept . ?c property:part_of ?e } UNION { ?c property:part_of ?e . ?c rdf:type ontology:name . ?e rdf:type ontology:social_group } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Aïssata property:part_of ?s . { VALUES ( ?r ) { ( ontology:social_group ) ( ontology:concept ) } . ?s rdf:type ?r } } } . FILTER ( ?g > ?x ) }
[]
concept social group name
Q1058384 Q746990 Q876933
SYSTEM
hakham, Brahman, magi
Q1058384 Q1557998 Q746990 Q876933
(c(Q82799),P361,c(Q151885)|c(Q874405))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q874405
action count
action filter_multi_types
action find
entity Q2876425
relation P361
type Q151885
type Q874405
[ANSWERS] are a component of greater number of concepts and social groups than Aïssata
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?g ) WHERE { { ?c rdf:type ontology:Q82799 . ?e rdf:type ontology:Q151885 . ?c property:P361 ?e } UNION { ?c property:P361 ?e . ?c rdf:type ontology:Q82799 . ?e rdf:type ontology:Q874405 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q2876425 property:P361 ?s . { VALUES ( ?r ) { ( ontology:Q874405 ) ( ontology:Q151885 ) } . ?s rdf:type ?r } } } . FILTER ( ?g > ?x ) }
hakham Gyalwang Drukpa Brahman magi
Hakham, Brahman and magi are a component of greater number of concepts and social groups than Aïssata
hakham Brahman magi
action greater
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type social group
action count
action filter_multi_types
action find
entity Aïssata
relation part of
type concept
type social group
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'social group'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?g ) WHERE { { ?c rdf:type ontology:name . ?e rdf:type ontology:concept . ?c property:part_of ?e } UNION { ?c property:part_of ?e . ?c rdf:type ontology:name . ?e rdf:type ontology:social_group } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Aïssata property:part_of ?s . { VALUES ( ?r ) { ( ontology:social_group ) ( ontology:concept ) } . ?s rdf:type ?r } } } . FILTER ( ?g > ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q26266311
P361
Q151885 Q874405 Q82799
USER
And how about Trimnell?
(c(Q82799),P361,c(Q151885)|c(Q874405))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q874405
action count
action filter_multi_types
action find
entity Q26266311
relation P361
type Q151885
type Q874405
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q26266311 property:P361 ?u . { { ?u rdf:type ontology:Q874405 } UNION { ?u rdf:type ontology:Q151885 } } } } . FILTER ( ?z > ?a ) . { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?z ) WHERE { { ?v property:P361 ?w . ?v rdf:type ontology:Q82799 . ?w rdf:type ontology:Q151885 } UNION { ?v property:P361 ?w . ?v rdf:type ontology:Q82799 . ?w rdf:type ontology:Q874405 } } GROUP BY ?v } }
Trimnell
action greater
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type social group
action count
action filter_multi_types
action find
entity Trimnell
relation part of
type concept
type social group
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'social group'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Trimnell property:part_of ?u . { { ?u rdf:type ontology:social_group } UNION { ?u rdf:type ontology:concept } } } } . FILTER ( ?z > ?a ) . { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?z ) WHERE { { ?v property:part_of ?w . ?v rdf:type ontology:name . ?w rdf:type ontology:concept } UNION { ?v property:part_of ?w . ?v rdf:type ontology:name . ?w rdf:type ontology:social_group } } GROUP BY ?v } }
[]
concept social group name
Q1058384 Q746990 Q876933
SYSTEM
hakham, Brahman, magi
Q1058384 Q1557998 Q746990 Q876933
(c(Q82799),P361,c(Q151885)|c(Q874405))
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q874405
action count
action filter_multi_types
action find
entity Q26266311
relation P361
type Q151885
type Q874405
[ANSWERS]
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q26266311 property:P361 ?u . { { ?u rdf:type ontology:Q874405 } UNION { ?u rdf:type ontology:Q151885 } } } } . FILTER ( ?z > ?a ) . { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?z ) WHERE { { ?v property:P361 ?w . ?v rdf:type ontology:Q82799 . ?w rdf:type ontology:Q151885 } UNION { ?v property:P361 ?w . ?v rdf:type ontology:Q82799 . ?w rdf:type ontology:Q874405 } } GROUP BY ?v } }
hakham Gyalwang Drukpa Brahman magi
hakham Brahman magi
action greater
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type social group
action count
action filter_multi_types
action find
entity Trimnell
relation part of
type concept
type social group
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'social group'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Trimnell property:part_of ?u . { { ?u rdf:type ontology:social_group } UNION { ?u rdf:type ontology:concept } } } } . FILTER ( ?z > ?a ) . { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?z ) WHERE { { ?v property:part_of ?w . ?v rdf:type ontology:name . ?w rdf:type ontology:concept } UNION { ?v property:part_of ?w . ?v rdf:type ontology:name . ?w rdf:type ontology:social_group } } GROUP BY ?v } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P180
Q82799 Q386724
USER
How many names are demonstrated in lesser number of works than that name ?
(c(Q386724),P180,c(Q82799))
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P180 ?y . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q82799 }
[{'concept': 'work'}, 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:depicts ?y . ?z rdf:type ontology:work . ?y rdf:type ontology:name }
[]
name work
Comparative|Count over More/Less|Single entity type|Clarification
Q1058384
SYSTEM
Did you mean hakham ?
(c(Q386724),P180,c(Q82799))
[ANSWER]
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P180 ?y . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q82799 }
Did you mean hakham ?
hakham
[{'concept': 'work'}, 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:depicts ?y . ?z rdf:type ontology:work . ?y rdf:type ontology:name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant magi. Could you tell me the answer for that?
(c(Q386724),P180,c(Q82799))
Q876933
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q82799'}]
[{'concept': 'work'}, 'depicts', {'concept': 'name'}]
[]
SYSTEM
0
(c(Q386724),P180,c(Q82799))
[ANSWER]
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P180 ?y . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q82799 }
0
[{'concept': 'work'}, 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:depicts ?y . ?z rdf:type ontology:work . ?y rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q721684 Q1058384
P361 P136
Q151885
USER
Which concepts are hakham a part of or can be considered as category for Walter Afanasieff ?
OR((Q1058384,P361,c(Q151885)), (Q721684,P136,c(Q151885)))
action filter_type
action union
action find
entity Q1058384
relation P361
action find
entity Q721684
relation P136
type Q151885
{'OR': [['Q1058384', 'P361', {'concept': 'Q151885'}], ['Q721684', 'P136', {'concept': 'Q151885'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1058384 property:P361 ?o } UNION { resource:Q721684 property:P136 ?o } } . ?o rdf:type ontology:Q151885 }
Walter Afanasieff hakham
action filter_type
action union
action find
entity hakham
relation part of
action find
entity Walter Afanasieff
relation genre
type concept
{'OR': [['hakham', 'part of', {'concept': 'concept'}], ['Walter Afanasieff', 'genre', {'concept': 'concept'}]]}
SELECT DISTINCT ?o WHERE { { { resource:hakham property:part_of ?o } UNION { resource:Walter_Afanasieff property:genre ?o } } . ?o rdf:type ontology:concept }
[]
concept
Q131272 Q177826
SYSTEM
soul music, clergy
Q131272 Q177826
OR((Q1058384,P361,c(Q151885)), (Q721684,P136,c(Q151885)))
action filter_type
action union
action find
entity Q1058384
relation P361
action find
entity Q721684
relation P136
type Q151885
[ANSWERS] are hakham a part of or can be considered as category for Walter Afanasieff
{'OR': [['Q1058384', 'P361', {'concept': 'Q151885'}], ['Q721684', 'P136', {'concept': 'Q151885'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1058384 property:P361 ?o } UNION { resource:Q721684 property:P136 ?o } } . ?o rdf:type ontology:Q151885 }
soul music clergy
Soul music and clergy are hakham a part of or can be considered as category for Walter Afanasieff
soul music clergy
action filter_type
action union
action find
entity hakham
relation part of
action find
entity Walter Afanasieff
relation genre
type concept
{'OR': [['hakham', 'part of', {'concept': 'concept'}], ['Walter Afanasieff', 'genre', {'concept': 'concept'}]]}
SELECT DISTINCT ?o WHERE { { { resource:hakham property:part_of ?o } UNION { resource:Walter_Afanasieff property:genre ?o } } . ?o rdf:type ontology:concept }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q8441 Q876933
P180
Q3305213
USER
Which paintings demonstrate magi and man ?
AND((c(Q3305213),P180,Q876933), (c(Q3305213),P180,Q8441))
action filter_type
action intersection
action find_reverse
entity Q876933
relation P180
action find_reverse
entity Q8441
relation P180
type Q3305213
{'AND': [[{'concept': 'Q3305213'}, 'P180', 'Q876933'], [{'concept': 'Q3305213'}, 'P180', 'Q8441']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q3305213 . ?x property:P180 resource:Q8441 . ?x property:P180 resource:Q876933 }
man magi
action filter_type
action intersection
action find_reverse
entity magi
relation depicts
action find_reverse
entity man
relation depicts
type painting
{'AND': [[{'concept': 'painting'}, 'depicts', 'magi'], [{'concept': 'painting'}, 'depicts', 'man']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:painting . ?x property:depicts resource:man . ?x property:depicts resource:magi }
[]
painting
Q650189 Q323155
SYSTEM
Adoration of the Magi, Marienaltar
Q650189 Q323155
AND((c(Q3305213),P180,Q876933), (c(Q3305213),P180,Q8441))
action filter_type
action intersection
action find_reverse
entity Q876933
relation P180
action find_reverse
entity Q8441
relation P180
type Q3305213
[ANSWERS] demonstrate magi and man
{'AND': [[{'concept': 'Q3305213'}, 'P180', 'Q876933'], [{'concept': 'Q3305213'}, 'P180', 'Q8441']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q3305213 . ?x property:P180 resource:Q8441 . ?x property:P180 resource:Q876933 }
Adoration of the Magi Marienaltar
Adoration of the Magi and Marienaltar demonstrate magi and man
Adoration of the Magi Marienaltar
action filter_type
action intersection
action find_reverse
entity magi
relation depicts
action find_reverse
entity man
relation depicts
type painting
{'AND': [[{'concept': 'painting'}, 'depicts', 'magi'], [{'concept': 'painting'}, 'depicts', 'man']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:painting . ?x property:depicts resource:man . ?x property:depicts resource:magi }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P636
Q151885 Q8386 Q3249551
USER
Which concepts represents the administration route of approximately 5 drugs or processes ?
(c(Q8386)|c(Q3249551),P636,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
value 5
[[{'concept': 'Q8386'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?r WHERE { VALUES ( ?m ) { ( ontology:Q8386 ) ( ontology:Q3249551 ) } . ?f rdf:type ?m } GROUP BY ?r } . FILTER ( ?h = 5 ) }
action approx
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type process
value 5
[[{'concept': 'drug'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?r WHERE { VALUES ( ?m ) { ( ontology:drug ) ( ontology:process ) } . ?f rdf:type ?m } GROUP BY ?r } . FILTER ( ?h = 5 ) }
[]
concept drug process
Q1663054 Q1400536 Q1344580
SYSTEM
ingestion, intraperitoneal injection, enteral
Q1400536 Q1344580 Q366155 Q6058566 Q180609 Q419892 Q21074571 Q245359 Q420054 Q7833952 Q3153701 Q1369403 Q4669896 Q16920397 Q1320251 Q1663054 Q16861468 Q784720 Q10268830
(c(Q8386)|c(Q3249551),P636,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
value 5
[ANSWERS] represent the administration route of approximately 5 drugs or processes
[[{'concept': 'Q8386'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?r WHERE { VALUES ( ?m ) { ( ontology:Q8386 ) ( ontology:Q3249551 ) } . ?f rdf:type ?m } GROUP BY ?r } . FILTER ( ?h = 5 ) }
intraperitoneal injection enteral intracardiac injection intravaginal administration intravitreal administration rectal eye contact injection topical medication transdermal insufflation intravenous injection skin absorption conjunctival Intrathecal ingestion intra-arterial infusion sublingual administration inhalation
Ingestion, intraperitoneal injection and enteral represent the administration route of approximately 5 drugs or processes
ingestion intraperitoneal injection enteral
action approx
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type process
value 5
[[{'concept': 'drug'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?r WHERE { VALUES ( ?m ) { ( ontology:drug ) ( ontology:process ) } . ?f rdf:type ?m } GROUP BY ?r } . FILTER ( ?h = 5 ) }
[]