Simple Question (Direct)
Simple Question
Q21055
P734
Q82799
USER
Which name is associated with Christian Albrecht Jensen ?
(Q21055,P734,c(Q82799))
action filter_type
action find
entity Q21055
relation P734
type Q82799
['Q21055', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q21055 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Christian Albrecht Jensen
action filter_type
action find
entity Christian Albrecht Jensen
relation family name
type name
['Christian Albrecht Jensen', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Christian_Albrecht_Jensen property:family_name ?x . ?x rdf:type ontology:name }
[]
name
Q16871164
SYSTEM
Jensen
Q16871164
(Q21055,P734,c(Q82799))
action filter_type
action find
entity Q21055
relation P734
type Q82799
S [ANSWER] is associated with Christian Albrecht [ANSWER]
['Q21055', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q21055 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Jensen
S Jensen is associated with Christian Albrecht Jensen
Jensen
action filter_type
action find
entity Christian Albrecht Jensen
relation family name
type name
['Christian Albrecht Jensen', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Christian_Albrecht_Jensen property:family_name ?x . ?x rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21055
P1066
Q502895
USER
Which person is a pupil of Christian Albrecht Jensen ?
(c(Q502895),P1066,Q21055)
action filter_type
action find_reverse
entity Q21055
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q21055']
SELECT DISTINCT ?u WHERE { ?u property:P1066 resource:Q21055 . ?u rdf:type ontology:Q502895 }
Christian Albrecht Jensen
action filter_type
action find_reverse
entity Christian Albrecht Jensen
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Christian Albrecht Jensen']
SELECT DISTINCT ?u WHERE { ?u property:student_of resource:Christian_Albrecht_Jensen . ?u rdf:type ontology:common_name }
[]
common name
Q4027439
SYSTEM
Harald Slott-Møller
Q4027439
(c(Q502895),P1066,Q21055)
action filter_type
action find_reverse
entity Q21055
relation P1066
type Q502895
[ANSWER] is a pupil of Christian Albrecht Jensen
[{'concept': 'Q502895'}, 'P1066', 'Q21055']
SELECT DISTINCT ?u WHERE { ?u property:P1066 resource:Q21055 . ?u rdf:type ontology:Q502895 }
Harald Slott-Møller
Harald Slott-Møller is a pupil of Christian Albrecht Jensen
Harald Slott-Møller
action filter_type
action find_reverse
entity Christian Albrecht Jensen
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Christian Albrecht Jensen']
SELECT DISTINCT ?u WHERE { ?u property:student_of resource:Christian_Albrecht_Jensen . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4027439
P25
Q502895
USER
Who was the mom of that one ?
(Q4027439,P25,c(Q502895))
action filter_type
action find
entity Q4027439
relation P25
type Q502895
['Q4027439', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q4027439 property:P25 ?i }
Harald Slott-Møller
action filter_type
action find
entity Harald Slott-Møller
relation mother
type common name
['Harald Slott-Møller', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:Harald_Slott-Møller property:mother ?i }
[]
common name
Q15901228
SYSTEM
Anna Maria née Møller
Q15901228
(Q4027439,P25,c(Q502895))
action filter_type
action find
entity Q4027439
relation P25
type Q502895
The mom of that one was Princess [ANSWER]
['Q4027439', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q4027439 property:P25 ?i }
Anna Maria née Møller
The mom of that one was Princess Anna Maria née Møller
Anna Maria née Møller
action filter_type
action find
entity Harald Slott-Møller
relation mother
type common name
['Harald Slott-Møller', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:Harald_Slott-Møller property:mother ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21055
P20
Q56061
USER
Where did the expiration of Christian Albrecht Jensen occur ?
(Q21055,P20,c(Q56061))
action filter_type
action find
entity Q21055
relation P20
type Q56061
['Q21055', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q21055 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Christian Albrecht Jensen
action filter_type
action find
entity Christian Albrecht Jensen
relation place of death
type administrative territorial entity
['Christian Albrecht Jensen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Christian_Albrecht_Jensen property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1748
SYSTEM
Copenhagen
Q1748
(Q21055,P20,c(Q56061))
action filter_type
action find
entity Q21055
relation P20
type Q56061
The expiration of Christian Albrecht Jensen occurred in [ANSWER]
['Q21055', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q21055 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Copenhagen
The expiration of Christian Albrecht Jensen occurred in Copenhagen
Copenhagen
action filter_type
action find
entity Christian Albrecht Jensen
relation place of death
type administrative territorial entity
['Christian Albrecht Jensen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Christian_Albrecht_Jensen property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1748
P190
Q56061 Q13220204
USER
How many administrative territories and administrative country subdivisions are twin towns of Copenhagen ?
(Q1748,P190,c(Q56061)) (Q1748,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q1748
relation P190
type Q56061
action filter_type
action find
entity Q1748
relation P190
type Q13220204
['Q1748', 'P190', {'concept': 'Q56061'}] ['Q1748', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { resource:Q1748 property:P190 ?q . ?q rdf:type ontology:Q13220204 } UNION { resource:Q1748 property:P190 ?q . ?q rdf:type ontology:Q56061 } }
Copenhagen
action count
action union
action filter_type
action find
entity Copenhagen
relation sister city
type administrative territorial entity
action filter_type
action find
entity Copenhagen
relation sister city
type second-level administrative country subdivision
['Copenhagen', 'sister city', {'concept': 'administrative territorial entity'}] ['Copenhagen', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { resource:Copenhagen property:sister_city ?q . ?q rdf:type ontology:second-level_administrative_country_subdivision } UNION { resource:Copenhagen property:sister_city ?q . ?q rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity second-level administrative country subdivision
SYSTEM
11 administrative territories and 1 administrative country subdivisions
Q1757 Q226 Q1754 Q391461 Q585 Q4361 Q956 Q1085 Q64 Q9899 Q1764 Q10704
(Q1748,P190,c(Q56061)) (Q1748,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q1748
relation P190
type Q56061
action filter_type
action find
entity Q1748
relation P190
type Q13220204
[ANSWER]
['Q1748', 'P190', {'concept': 'Q56061'}] ['Q1748', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { resource:Q1748 property:P190 ?q . ?q rdf:type ontology:Q13220204 } UNION { resource:Q1748 property:P190 ?q . ?q rdf:type ontology:Q56061 } }
Helsinki Nuuk Stockholm Grójec Oslo Curitiba Beijing Prague Berlin Amsterdam Reykjavík Tórshavn
11 administrative territories and 1 administrative country subdivisions
action count
action union
action filter_type
action find
entity Copenhagen
relation sister city
type administrative territorial entity
action filter_type
action find
entity Copenhagen
relation sister city
type second-level administrative country subdivision
['Copenhagen', 'sister city', {'concept': 'administrative territorial entity'}] ['Copenhagen', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { resource:Copenhagen property:sister_city ?q . ?q rdf:type ontology:second-level_administrative_country_subdivision } UNION { resource:Copenhagen property:sister_city ?q . ?q rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15901228
P26
Q502895
USER
Which person is the life partner of Anna Maria née Møller ?
(c(Q502895),P26,Q15901228)
action filter_type
action find
entity Q15901228
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q15901228']
SELECT DISTINCT ?u WHERE { resource:Q15901228 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Anna Maria née Møller
action filter_type
action find
entity Anna Maria née Møller
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Anna Maria née Møller']
SELECT DISTINCT ?u WHERE { resource:Anna_Maria_née_Møller property:spouse ?u . ?u rdf:type ontology:common_name }
[]
common name
Q15901208
SYSTEM
Carl Emil Møller
Q15901208
(c(Q502895),P26,Q15901228)
action filter_type
action find
entity Q15901228
relation P26
type Q502895
[ANSWER] is the life partner of Anna Maria née Møller
[{'concept': 'Q502895'}, 'P26', 'Q15901228']
SELECT DISTINCT ?u WHERE { resource:Q15901228 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Carl Emil Møller
Carl Emil Møller is the life partner of Anna Maria née Møller
Carl Emil Møller
action filter_type
action find
entity Anna Maria née Møller
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Anna Maria née Møller']
SELECT DISTINCT ?u WHERE { resource:Anna_Maria_née_Møller property:spouse ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15901228
P21
Q290
USER
Which sex does Anna Maria née Møller belong to ?
(Q15901228,P21,c(Q290))
action filter_type
action find
entity Q15901228
relation P21
type Q290
['Q15901228', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q15901228 property:P21 ?f . ?f rdf:type ontology:Q290 }
Anna Maria née Møller
action filter_type
action find
entity Anna Maria née Møller
relation gender
type sex
['Anna Maria née Møller', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Anna_Maria_née_Møller property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q15901228,P21,c(Q290))
action filter_type
action find
entity Q15901228
relation P21
type Q290
Anna Maria née Møller belongs to the [ANSWER]
['Q15901228', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q15901228 property:P21 ?f . ?f rdf:type ontology:Q290 }
female
Anna Maria née Møller belongs to the female
female
action filter_type
action find
entity Anna Maria née Møller
relation gender
type sex
['Anna Maria née Møller', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Anna_Maria_née_Møller property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12309742
Q290
USER
And also tell me about Elisabeth Arnold?
(Q12309742,P21,c(Q290))
action filter_type
action find
entity Q12309742
relation P21
type Q290
['Q12309742', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q12309742 property:P21 ?c . ?c rdf:type ontology:Q290 }
Elisabeth Arnold
action filter_type
action find
entity Elisabeth Arnold
relation gender
type sex
['Elisabeth Arnold', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Elisabeth_Arnold property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q12309742,P21,c(Q290))
action filter_type
action find
entity Q12309742
relation P21
type Q290
[ANSWER]
['Q12309742', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q12309742 property:P21 ?c . ?c rdf:type ontology:Q290 }
female
female
action filter_type
action find
entity Elisabeth Arnold
relation gender
type sex
['Elisabeth Arnold', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Elisabeth_Arnold property:gender ?c . ?c rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q232453
P417
Q502895 Q56061 Q16970
USER
Which people are the patron saints of more number of administrative territories or churches than Martha ?
(c(Q56061)|c(Q16970),P417,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action count
action filter_multi_types
action find_reverse
entity Q232453
relation P417
type Q56061
type Q16970
[[{'concept': 'Q56061'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?w ) WHERE { ?l rdf:type ?u . VALUES ( ?u ) { ( ontology:Q56061 ) ( ontology:Q16970 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:Q16970 ) ( ontology:Q56061 ) } } . ?o property:P417 resource:Q232453 } } . FILTER ( ?w > ?a ) }
Martha
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action count
action filter_multi_types
action find_reverse
entity Martha
relation patron saint
type administrative territorial entity
type church
[[{'concept': 'administrative territorial entity'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?w ) WHERE { ?l rdf:type ?u . VALUES ( ?u ) { ( ontology:administrative_territorial_entity ) ( ontology:church ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:church ) ( ontology:administrative_territorial_entity ) } } . ?o property:patron_saint resource:Martha } } . FILTER ( ?w > ?a ) }
[]
common name administrative territorial entity church
Q8413 Q8018 Q174044
SYSTEM
Constantine the Great, Augustine of Hippo, Alexander Nevsky
Q133704 Q152457 Q172390 Q516729 Q3893243 Q732865 Q696682 Q320199 Q43689 Q3776432 Q128267 Q328804 Q174044 Q1284098 Q163900 Q31966 Q170547 Q44024 Q676555 Q244380 Q287916 Q539890 Q212850 Q1346958 Q51885 Q234697 Q1284971 Q357093 Q115550 Q8413 Q558148 Q379685 Q42887 Q4210004 Q177903 Q2697247 Q457903 Q8018 Q315312 Q216946 Q33923 Q161775 Q128538 Q316599 Q183240 Q145746 Q298845 Q167477 Q288295 Q297742 Q218921 Q183332 Q48438 Q44281 Q170164 Q43399 Q189776 Q965463 Q196527 Q336731 Q4161703 Q9200 Q174880 Q235863 Q2142772 Q43999 Q1747656 Q1393825 Q359259 Q12871 Q369691 Q44269 Q2456500 Q192816 Q43982 Q179718 Q445357 Q40662 Q1976199 Q534691 Q80513 Q26486 Q158504 Q151967 Q149727 Q11905449 Q4026158 Q164294 Q3561124 Q159862 Q17590 Q200895 Q284323 Q59071 Q1383532 Q44248 Q1269112 Q310633
(c(Q56061)|c(Q16970),P417,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action count
action filter_multi_types
action find_reverse
entity Q232453
relation P417
type Q56061
type Q16970
[ANSWERS] are the patron saints of more number of administrative territories or churches than Martha
[[{'concept': 'Q56061'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?w ) WHERE { ?l rdf:type ?u . VALUES ( ?u ) { ( ontology:Q56061 ) ( ontology:Q16970 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:Q16970 ) ( ontology:Q56061 ) } } . ?o property:P417 resource:Q232453 } } . FILTER ( ?w > ?a ) }
Martin of Tours Saint Roch Martin I Sebaldus Pamphilus of Sulmona Vitalis of Milan Arnold von Arnoldsweiler Apollinaris of Ravenna Ambrose Gonçalo de Amarante Joseph John the Evangelist Alexander Nevsky Turibius of Astorga Saint Francis Xavier Mark the Evangelist Anthony the Great Athanasius of Alexandria Francis of Assisi Saint Denis Finbarr of Cork Lazarus of Bethany Vitus Judas Cyriacus Thecla Maria Goretti La Mosca Victor Maurus Saint Spyridon Nicholas of Flüe Constantine the Great Leonard of Noblac Isidore the Laborer Clement I Venantius of Camerino Stephen I of Hungary Catellus of Castellammare Saint Bavo Augustine of Hippo Januarius Charles Borromeo Peter Stephen Luke the Evangelist Saint Maurice Saint Lucy Joseph Saint Florian Anthony of Padua Justina of Padua Margaret the Virgin Saint Eustace Saint Sebastian Saint George Ignatius of Loyola Helena of Constantinople Andrew Zeno of Verona Rumbold of Mechelen Saint Wenceslaus I, Duke of Bohemia Pancras of Rome Dimitry Prilutsky Paul Teresa of Ávila Genevieve Gereon James Saturninus of Cagliari Valerius of Saragossa Saint Emeric of Hungary Simon the Zealot Saint Ursula Saint Nicholas Eulalia of Barcelona Saint Barbara Bartholomew the Apostle Catherine of Alexandria Henry John the Baptist Gaudentius of Novara Paschal Baylon Saint Cecilia Ladislaus I of Hungary Clement of Ohrid Saint Blaise Saint Giles Anastasi de Lleida Possidonio Saint Anna Acisclus Elizabeth of Hungary Lawrence of Rome Agatha of Sicily Eulalia of Mérida Peter de Regalado Rainerius Jerome Saint Ninian Demetrius of Thessaloniki
Constantine the Great, Augustine of Hippo and Alexander Nevsky are the patron saints of more number of administrative territories or churches than Martha
Constantine the Great Augustine of Hippo Alexander Nevsky
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action count
action filter_multi_types
action find_reverse
entity Martha
relation patron saint
type administrative territorial entity
type church
[[{'concept': 'administrative territorial entity'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?w ) WHERE { ?l rdf:type ?u . VALUES ( ?u ) { ( ontology:administrative_territorial_entity ) ( ontology:church ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:church ) ( ontology:administrative_territorial_entity ) } } . ?o property:patron_saint resource:Martha } } . FILTER ( ?w > ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q161775
P417
Q502895 Q56061 Q16970
USER
And also tell me about Stephen?
(c(Q56061)|c(Q16970),P417,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action count
action filter_multi_types
action find_reverse
entity Q161775
relation P417
type Q56061
type Q16970
[[{'concept': 'Q56061'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { { ?g rdf:type ontology:Q56061 } UNION { ?g rdf:type ontology:Q16970 } } . ?g property:P417 resource:Q161775 } } . FILTER ( ?o > ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?r WHERE { { ?t property:P417 ?r . ?r rdf:type ontology:Q502895 . ?t rdf:type ontology:Q56061 } UNION { ?t property:P417 ?r . ?r rdf:type ontology:Q502895 . ?t rdf:type ontology:Q16970 } } GROUP BY ?r } }
Stephen
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action count
action filter_multi_types
action find_reverse
entity Stephen
relation patron saint
type administrative territorial entity
type church
[[{'concept': 'administrative territorial entity'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { { ?g rdf:type ontology:administrative_territorial_entity } UNION { ?g rdf:type ontology:church } } . ?g property:patron_saint resource:Stephen } } . FILTER ( ?o > ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?r WHERE { { ?t property:patron_saint ?r . ?r rdf:type ontology:common_name . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t property:patron_saint ?r . ?r rdf:type ontology:common_name . ?t rdf:type ontology:church } } GROUP BY ?r } }
[]
common name administrative territorial entity church
Q33923 Q9200 Q40662
SYSTEM
Peter, Paul, John the Baptist
Q133704 Q33923 Q9200 Q44269 Q40662
(c(Q56061)|c(Q16970),P417,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action count
action filter_multi_types
action find_reverse
entity Q161775
relation P417
type Q56061
type Q16970
[ANSWERS]
[[{'concept': 'Q56061'}, {'concept': 'Q16970'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { { ?g rdf:type ontology:Q56061 } UNION { ?g rdf:type ontology:Q16970 } } . ?g property:P417 resource:Q161775 } } . FILTER ( ?o > ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?r WHERE { { ?t property:P417 ?r . ?r rdf:type ontology:Q502895 . ?t rdf:type ontology:Q56061 } UNION { ?t property:P417 ?r . ?r rdf:type ontology:Q502895 . ?t rdf:type ontology:Q16970 } } GROUP BY ?r } }
Martin of Tours Peter Paul Saint Nicholas John the Baptist
Peter Paul John the Baptist
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action count
action filter_multi_types
action find_reverse
entity Stephen
relation patron saint
type administrative territorial entity
type church
[[{'concept': 'administrative territorial entity'}, {'concept': 'church'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { { ?g rdf:type ontology:administrative_territorial_entity } UNION { ?g rdf:type ontology:church } } . ?g property:patron_saint resource:Stephen } } . FILTER ( ?o > ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?r WHERE { { ?t property:patron_saint ?r . ?r rdf:type ontology:common_name . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t property:patron_saint ?r . ?r rdf:type ontology:common_name . ?t rdf:type ontology:church } } GROUP BY ?r } }
[]